diff options
Diffstat (limited to 'lib/ephy-module.c')
-rw-r--r-- | lib/ephy-module.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/ephy-module.c b/lib/ephy-module.c index 848a77413..97710fc08 100644 --- a/lib/ephy-module.c +++ b/lib/ephy-module.c @@ -139,7 +139,14 @@ ephy_module_load (GTypeModule *gmodule) return FALSE; } - g_assert (register_func); + /* symbol can still be NULL even though g_module_symbol returned TRUE */ + if (!register_func) + { + g_warning ("Symbol 'register_module' is NULL!"); + g_module_close (module->library); + + return FALSE; + } module->type = register_func (gmodule); |