diff --git a/libnotify/notify.c b/libnotify/notify.c index a24a5fd..8491cf1 100644 --- a/libnotify/notify.c +++ b/libnotify/notify.c @@ -182,7 +182,9 @@ notify_uninit (void) } } - g_object_unref (_proxy); + if (_proxy != NULL) { + g_object_unref (_proxy); + } _initted = FALSE; }