summaryrefslogtreecommitdiff
path: root/libnotify
diff options
context:
space:
mode:
authorChristian Hammond <chipx86@chipx86.com>2006-11-05 20:07:37 +0000
committerChristian Hammond <chipx86@chipx86.com>2006-11-05 20:07:37 +0000
commit9362dbd6bded3dcc6f67063c5d20483749082c72 (patch)
tree625bc727c13606e699a3cea2afcada1d6cba7361 /libnotify
parentc037f63ca9c1f5bfe2cc0df2194c5fd7f48109dc (diff)
downloadlibnotify-9362dbd6bded3dcc6f67063c5d20483749082c72.tar.gz
Patch by Giacomo Lozito to fix a problem where the dbus proxy was not being freed on notify_uninit, which led to problems when libnotify was used in a loadable module. This fixes bug #92.
Diffstat (limited to 'libnotify')
-rw-r--r--libnotify/notify.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libnotify/notify.c b/libnotify/notify.c
index d5dd541..abd9cb2 100644
--- a/libnotify/notify.c
+++ b/libnotify/notify.c
@@ -120,6 +120,9 @@ notify_uninit(void)
{
GList *l;
+ if (!_initted)
+ return;
+
if (_app_name != NULL)
{
g_free(_app_name);
@@ -137,6 +140,8 @@ notify_uninit(void)
}
}
+ g_object_unref(_proxy);
+
_initted = FALSE;
}