summaryrefslogtreecommitdiff
path: root/chanserv.c
diff options
context:
space:
mode:
authorrob 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
committerrob 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
commitc5cb6ef9fe5faffab9630a2d2684e7373f32403f (patch)
treedf7bb62dbe48a8dd03ebbad5bb11aac257577937 /chanserv.c
parent7250a369ab2f5f1980050b0f4cee251ad64ad009 (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 'chanserv.c')
-rw-r--r--chanserv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/chanserv.c b/chanserv.c
index 4e0a0cae7..304a72cfe 100644
--- a/chanserv.c
+++ b/chanserv.c
@@ -2182,6 +2182,7 @@ int delchan(ChannelInfo * ci)
for (i = 0; i < ci->memos.memocount; i++) {
if (ci->memos.memos[i].text)
free(ci->memos.memos[i].text);
+ moduleCleanStruct(ci->memos.memos[i].moduleData);
}
free(ci->memos.memos);
}
@@ -2193,6 +2194,9 @@ int delchan(ChannelInfo * ci)
}
if (ci->badwords)
free(ci->badwords);
+
+ moduleCleanStruct(ci->moduleData);
+
free(ci);
if (nc)
nc->channelcount--;