[krb5-auth-dialog: 9/14] plugin-loader: Use wrapper to avoid warning
- From: Guido Günther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [krb5-auth-dialog: 9/14] plugin-loader: Use wrapper to avoid warning
- Date: Tue, 5 Jan 2021 20:25:20 +0000 (UTC)
commit 3d8a939cca9085da09445ce4b2a59b5f10723168
Author: Guido Günther <agx sigxcpu org>
Date: Mon Jan 4 19:01:52 2021 +0100
plugin-loader: Use wrapper to avoid warning
src/ka-plugin-loader.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/src/ka-plugin-loader.c b/src/ka-plugin-loader.c
index e02a443..88351a8 100644
--- a/src/ka-plugin-loader.c
+++ b/src/ka-plugin-loader.c
@@ -34,6 +34,13 @@ struct _KaPluginLoaderPrivate {
G_DEFINE_TYPE_WITH_PRIVATE (KaPluginLoader, ka_plugin_loader, G_TYPE_OBJECT)
+static void
+module_close (GModule *module, GObject *unused G_GNUC_UNUSED)
+{
+ g_module_close (module);
+}
+
+
static KaPlugin*
load_plugin (const char *path)
{
@@ -77,7 +84,7 @@ load_plugin (const char *path)
plugin = (*plugin_create_func) ();
if (plugin) {
- g_object_weak_ref (G_OBJECT (plugin), (GWeakNotify) g_module_close, module);
+ g_object_weak_ref (G_OBJECT (plugin), (GWeakNotify) module_close, module);
g_message ("Loaded plugin %s", ka_plugin_get_name (plugin));
} else
g_warning ("Could not load plugin %s: initialization failed", path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]