From fde24ab0878f35c43b037a646bd22c78165a0139 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 30 Oct 2005 18:37:18 +0000 Subject: Use G_MODULE_BIND_LAZY when dlopening modules. 2005-10-30 Emmanuele Bassi * lib/ephy-glade.c: (glade_signal_connect_func): * lib/ephy-module.c: (ephy_module_load): Use G_MODULE_BIND_LAZY when dlopening modules. --- ChangeLog | 7 +++++++ lib/ephy-glade.c | 2 +- lib/ephy-module.c | 8 +++++--- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5bff98296..b1dbb2109 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-10-30 Emmanuele Bassi + + * lib/ephy-glade.c: (glade_signal_connect_func): + * lib/ephy-module.c: (ephy_module_load): + + Use G_MODULE_BIND_LAZY when dlopening modules. + 2005-10-30 Christian Persch * src/prefs-dialog.c: (create_download_path_button): diff --git a/lib/ephy-glade.c b/lib/ephy-glade.c index ce91c9954..75dc067e3 100644 --- a/lib/ephy-glade.c +++ b/lib/ephy-glade.c @@ -95,7 +95,7 @@ glade_signal_connect_func (const gchar *cb_name, GObject *obj, /* initialize gmodule */ if (mod_self == NULL) { - mod_self = g_module_open (NULL, 0); + mod_self = g_module_open (NULL, G_MODULE_BIND_LAZY); g_assert (mod_self != NULL); } diff --git a/lib/ephy-module.c b/lib/ephy-module.c index 90a7f1713..1da457aaa 100644 --- a/lib/ephy-module.c +++ b/lib/ephy-module.c @@ -105,14 +105,16 @@ ephy_module_load (GTypeModule *gmodule) { char *path = g_build_filename (ephy_dot_dir(), "extensions", module->path, NULL); - module->library = g_module_open (path, 0); - + module->library = g_module_open (path, G_MODULE_BIND_LAZY | + G_MODULE_BIND_LOCAL); + g_free (path); } if (module->library == NULL) { - module->library = g_module_open (module->path, 0); + module->library = g_module_open (module->path, G_MODULE_BIND_LAZY | + G_MODULE_BIND_LOCAL); } if (module->library == NULL) -- cgit v1.2.3