diff options
author | Ted Gould <ted@canonical.com> | 2009-11-04 11:19:26 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-11-04 11:19:26 -0600 |
commit | 534aab3aa87e4ffcca3e14f5c19498843c0adbca (patch) | |
tree | 53b306cad39a4f2959cc10bbd0eb191ed0b15561 | |
parent | 8c321faf4fe07293d747438923d10839bbf9ac6c (diff) | |
download | libayatana-indicator-534aab3aa87e4ffcca3e14f5c19498843c0adbca.tar.gz libayatana-indicator-534aab3aa87e4ffcca3e14f5c19498843c0adbca.tar.bz2 libayatana-indicator-534aab3aa87e4ffcca3e14f5c19498843c0adbca.zip |
Use close instead of unreffing.
-rw-r--r-- | libindicator/indicator-object.c | 7 |
1 files 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; } |