diff -u libnotify-0.4.5/debian/changelog libnotify-0.4.5/debian/changelog --- libnotify-0.4.5/debian/changelog +++ libnotify-0.4.5/debian/changelog @@ -1,3 +1,10 @@ +libnotify (0.4.5-1ubuntu4) lucid; urgency=low + + * debian/patches/04_assertion-on-exit.patch: Fix an assertion when a process + would init and uninit libnotify without send a notification (LP: #570462). + + -- Guillaume Mazoyer Fri, 09 Jul 2010 13:21:27 +0200 + libnotify (0.4.5-1ubuntu3) lucid; urgency=low * debian/patches/03_lazy_init.patch: Fix return values in the failure cases, only in patch2: unchanged: --- libnotify-0.4.5.orig/debian/patches/04_assertion-on-exit.patch +++ libnotify-0.4.5/debian/patches/04_assertion-on-exit.patch @@ -0,0 +1,16 @@ +## Description: Fix assertion when a process doesn't use notifications. +## Origin/Author: Ubuntu/Guillaume Mazoyer +diff -Nur -x '*.orig' -x '*~' libnotify-0.4.5/libnotify/notify.c libnotify-0.4.5.new/libnotify/notify.c +--- libnotify-0.4.5/libnotify/notify.c 2010-07-09 13:24:41.832139185 +0200 ++++ libnotify-0.4.5.new/libnotify/notify.c 2010-07-09 13:24:43.259143382 +0200 +@@ -129,7 +129,9 @@ + } + } + +- g_object_unref(_proxy); ++ if (_proxy != NULL) { ++ g_object_unref(_proxy); ++ } + + _initted = FALSE; + }