From 534aab3aa87e4ffcca3e14f5c19498843c0adbca Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 4 Nov 2009 11:19:26 -0600 Subject: Use close instead of unreffing. --- libindicator/indicator-object.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c index 2ab0f84..a492038 100644 --- a/libindicator/indicator-object.c +++ b/libindicator/indicator-object.c @@ -146,12 +146,15 @@ indicator_object_dispose (GObject *object) return; } -/* A small helper function that unreferences an object but +/* A small helper function that closes a module but in the function prototype of a GSourceFunc. */ static gboolean module_unref (gpointer data) { - g_object_unref(G_OBJECT(data)); + if (!g_module_close((GModule *)data)) { + /* All we can do is warn. */ + g_warning("Unable to close module!"); + } return FALSE; } -- cgit v1.2.3