1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

Crashfix when module didn't contain deinit() function.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1950 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-10-31 23:30:34 +00:00 committed by cras
parent ee93268315
commit 00f94a93a5

View File

@ -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);