Fix assertion when uniniting without any notifications
The lazy initialization from commit 3dc04fa
caused a small regression: When a
process would init and uninit libnotify without ever sending a notification,
_proxy was still NULL, which caused an assertion
(process:20953): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Bug-Ubuntu: https://bugs.launchpad.net/bugs/570462
This commit is contained in:
parent
c8d987d5f2
commit
1a103f1eee
|
@ -182,7 +182,9 @@ notify_uninit (void)
|
|||
}
|
||||
}
|
||||
|
||||
if (_proxy != NULL) {
|
||||
g_object_unref (_proxy);
|
||||
}
|
||||
|
||||
_initted = FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue