summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-09-27 23:43:53 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-09-27 23:43:53 +0000
commit79100fea45a0514052d7202e97415e29c76479ac (patch)
tree1fda1726db58a58cad993c992826d3b401a0f56f /src/core
parent3dac008fbc67dd775e680754551eb56d008b5574 (diff)
downloadirssi-79100fea45a0514052d7202e97415e29c76479ac.zip
modules are deinitialized at quit.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@684 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.c3
-rw-r--r--src/core/memdebug.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/core/core.c b/src/core/core.c
index b1103f8c..c4e7e020 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -66,6 +66,9 @@ void core_init(void)
void core_deinit(void)
{
+ while (modules != NULL)
+ module_unload(modules->data);
+
nicklist_deinit();
queries_deinit();
channels_deinit();
diff --git a/src/core/memdebug.c b/src/core/memdebug.c
index 3dbed391..da75f0b8 100644
--- a/src/core/memdebug.c
+++ b/src/core/memdebug.c
@@ -95,7 +95,7 @@ static void data_add(char *p, int size, const char *file, int line)
rec->p = p;
rec->size = size;
- rec->file = (char *) file;
+ rec->file = g_strdup(file);
rec->line = line;
rec->comment = g_strdup(comment);
@@ -136,6 +136,7 @@ static void *data_remove(char *p, const char *file, int line)
}
g_hash_table_remove(data, p);
+ g_free(rec->file);
g_free(rec->comment);
g_free(rec);