summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-10-31 23:30:34 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-10-31 23:30:34 +0000
commit00f94a93a5f491f1b4bad0dbdd22cd9acc8f3db0 (patch)
tree31225f947a1ca567e18e757cebb5b8b8b1d58ebe
parentee932683152ebafadbef31cd5cc305e8cb683493 (diff)
downloadirssi-00f94a93a5f491f1b4bad0dbdd22cd9acc8f3db0.zip
Crashfix when module didn't contain deinit() function.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1950 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/core/modules-load.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/modules-load.c b/src/core/modules-load.c
index 04342a1b..e7e78091 100644
--- a/src/core/modules-load.c
+++ b/src/core/modules-load.c
@@ -352,7 +352,8 @@ int module_load_sub(const char *path, const char *submodule, char **prefixes)
static void module_file_deinit_gmodule(MODULE_FILE_REC *file)
{
/* call the module's deinit() function */
- file->module_deinit();
+ if (file->module_deinit != NULL)
+ file->module_deinit();
if (file->defined_module_name != NULL) {
settings_remove_module(file->defined_module_name);