aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2008-05-19 05:50:36 +0800
committerChristian Persch <chpe@src.gnome.org>2008-05-19 05:50:36 +0800
commit7ffc417c3154aaeaf919b3038545f44cd88acdb1 (patch)
tree1d94f4b73ab8b7c5552344871fd838c0874294fd
parent2865c6845b136c925ee51d5be79ede3e4aac8fd3 (diff)
downloadgsoc2013-epiphany-7ffc417c3154aaeaf919b3038545f44cd88acdb1.tar
gsoc2013-epiphany-7ffc417c3154aaeaf919b3038545f44cd88acdb1.tar.gz
gsoc2013-epiphany-7ffc417c3154aaeaf919b3038545f44cd88acdb1.tar.bz2
gsoc2013-epiphany-7ffc417c3154aaeaf919b3038545f44cd88acdb1.tar.lz
gsoc2013-epiphany-7ffc417c3154aaeaf919b3038545f44cd88acdb1.tar.xz
gsoc2013-epiphany-7ffc417c3154aaeaf919b3038545f44cd88acdb1.tar.zst
gsoc2013-epiphany-7ffc417c3154aaeaf919b3038545f44cd88acdb1.zip
Also unload the module if the returned GType is 0 here.
svn path=/branches/gnome-2-22/; revision=8233
-rw-r--r--lib/ephy-module.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ephy-module.c b/lib/ephy-module.c
index 63e626ab9..dad379ffd 100644
--- a/lib/ephy-module.c
+++ b/lib/ephy-module.c
@@ -152,6 +152,9 @@ ephy_module_load (GTypeModule *gmodule)
if (module->type == 0)
{
+ g_warning ("Failed to register the GType(s)!");
+ g_module_close (module->library);
+
return FALSE;
}