summaryrefslogtreecommitdiff
path: root/src/core/modules-load.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/modules-load.c')
-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);