mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02: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
2 changed files with 5 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue