mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 16:12:30 +02:00
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:
parent
810584803b
commit
8cd67ba344
5 changed files with 261 additions and 32 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue