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:
Martin Pitt 2010-07-01 14:30:54 +02:00
parent c8d987d5f2
commit 1a103f1eee
1 changed files with 3 additions and 1 deletions

View File

@ -182,7 +182,9 @@ notify_uninit (void)
}
}
if (_proxy != NULL) {
g_object_unref (_proxy);
}
_initted = FALSE;
}