diff options
author | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-05-02 10:34:58 +0000 |
---|---|---|
committer | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-05-02 10:34:58 +0000 |
commit | c5cb6ef9fe5faffab9630a2d2684e7373f32403f (patch) | |
tree | df7bb62dbe48a8dd03ebbad5bb11aac257577937 /memoserv.c | |
parent | 7250a369ab2f5f1980050b0f4cee251ad64ad009 (diff) |
BUILD : 1.7.2 (80) BUGS : N/A NOTES : Added Memos/ChannelInfo to the moduleAddData() system
git-svn-id: svn://svn.anope.org/anope/trunk@80 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@56 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'memoserv.c')
-rw-r--r-- | memoserv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/memoserv.c b/memoserv.c index 5508347b4..b02573740 100644 --- a/memoserv.c +++ b/memoserv.c @@ -192,6 +192,7 @@ static int delmemo(MemoInfo * mi, int num) break; } if (i < mi->memocount) { + moduleCleanStruct(mi->memos[i].moduleData); free(mi->memos[i].text); /* Deallocate memo text memory */ mi->memocount--; /* One less memo now */ if (i < mi->memocount) /* Move remaining memos down a slot */ @@ -778,8 +779,10 @@ static int do_del(User * u) notice_lang(s_MemoServ, u, MEMO_DELETED_ONE, last); } else { /* Delete all memos. */ - for (i = 0; i < mi->memocount; i++) + for (i = 0; i < mi->memocount; i++) { free(mi->memos[i].text); + moduleCleanStruct(mi->memos[i].moduleData); + } free(mi->memos); mi->memos = NULL; mi->memocount = 0; |