diff options
author | Christian Hammond <chipx86@chipx86.com> | 2006-11-05 20:07:37 +0000 |
---|---|---|
committer | Christian Hammond <chipx86@chipx86.com> | 2006-11-05 20:07:37 +0000 |
commit | 9362dbd6bded3dcc6f67063c5d20483749082c72 (patch) | |
tree | 625bc727c13606e699a3cea2afcada1d6cba7361 /libnotify | |
parent | c037f63ca9c1f5bfe2cc0df2194c5fd7f48109dc (diff) | |
download | libnotify-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.c | 5 |
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; } |