mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 16:12:30 +02:00
irssi stuck to infinite loop if it wasn't compiled with gmodule.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2933 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
dc2a4c620e
commit
28faa953be
1 changed files with 11 additions and 13 deletions
|
|
@ -367,6 +367,15 @@ static void module_file_deinit_gmodule(MODULE_FILE_REC *file)
|
||||||
g_module_close(file->gmodule);
|
g_module_close(file->gmodule);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else /* !HAVE_GMODULE - modules are not supported */
|
||||||
|
|
||||||
|
int module_load(const char *path, char **prefixes)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
void module_file_unload(MODULE_FILE_REC *file)
|
void module_file_unload(MODULE_FILE_REC *file)
|
||||||
{
|
{
|
||||||
MODULE_REC *root;
|
MODULE_REC *root;
|
||||||
|
|
@ -377,8 +386,10 @@ void module_file_unload(MODULE_FILE_REC *file)
|
||||||
if (file->initialized)
|
if (file->initialized)
|
||||||
signal_emit("module unloaded", 2, file->root, file);
|
signal_emit("module unloaded", 2, file->root, file);
|
||||||
|
|
||||||
|
#ifdef HAVE_GMODULE
|
||||||
if (file->gmodule != NULL)
|
if (file->gmodule != NULL)
|
||||||
module_file_deinit_gmodule(file);
|
module_file_deinit_gmodule(file);
|
||||||
|
#endif
|
||||||
|
|
||||||
g_free(file->name);
|
g_free(file->name);
|
||||||
g_free(file->defined_module_name);
|
g_free(file->defined_module_name);
|
||||||
|
|
@ -402,16 +413,3 @@ void module_unload(MODULE_REC *module)
|
||||||
g_free(module->name);
|
g_free(module->name);
|
||||||
g_free(module);
|
g_free(module);
|
||||||
}
|
}
|
||||||
|
|
||||||
#else /* !HAVE_GMODULE - modules are not supported */
|
|
||||||
|
|
||||||
int module_load(const char *path, char **prefixes)
|
|
||||||
{
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void module_unload(MODULE_REC *module)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue