Destroy all settings and commands used by modules when they're unloaded.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1001 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-12-17 04:14:47 +00:00 committed by cras
commit 8cd67ba344
5 changed files with 261 additions and 32 deletions

View file

@ -22,6 +22,9 @@
#include "modules.h"
#include "signals.h"
#include "commands.h"
#include "settings.h"
GSList *modules;
static GHashTable *uniqids, *uniqstrids;
@ -342,7 +345,10 @@ void module_unload(MODULE_REC *module)
module_deinit();
g_free(deinitfunc);
settings_remove_module(module->name);
commands_remove_module(module->name);
signals_remove_module(module->name);
g_module_close(module->gmodule);
g_free(module->name);
g_free(module);