mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
modules are deinitialized at quit.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@684 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
3dac008fbc
commit
79100fea45
@ -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();
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user