From 8cd67ba344542414516447c5020873772f4c1821 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 17 Dec 2000 04:14:47 +0000 Subject: 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 --- src/core/modules.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core/modules.c') diff --git a/src/core/modules.c b/src/core/modules.c index 85bbf587..e45a05b5 100644 --- a/src/core/modules.c +++ b/src/core/modules.c @@ -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); -- cgit v1.2.3