[libpeas] Bind module symbols locally and immediately
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Bind module symbols locally and immediately
- Date: Wed, 21 Sep 2011 09:32:32 +0000 (UTC)
commit 79c456ebf232f5de66c15580fff20885dee0bae6
Author: Garrett Regier <garrettregier gmail com>
Date: Thu Sep 1 17:01:41 2011 -0700
Bind module symbols locally and immediately
This allows us to fail when loading a plugin that has an undefined symbol.
libpeas/peas-object-module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libpeas/peas-object-module.c b/libpeas/peas-object-module.c
index d5ac85e..bfe9c9c 100644
--- a/libpeas/peas-object-module.c
+++ b/libpeas/peas-object-module.c
@@ -89,7 +89,7 @@ peas_object_module_load (GTypeModule *gmodule)
if (G_MODULE_SUFFIX[0] != '\0' && g_str_has_suffix (path, "." G_MODULE_SUFFIX))
path[strlen (path) - strlen (G_MODULE_SUFFIX) - 1] = '\0';
- module->priv->library = g_module_open (path, G_MODULE_BIND_LAZY);
+ module->priv->library = g_module_open (path, G_MODULE_BIND_LOCAL);
g_free (path);
if (module->priv->library == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]