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:
parent
ee93268315
commit
00f94a93a5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user