From 8b992922d055d79237bf319fdf31c2fee778b718 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Sun, 9 Jul 2006 23:38:54 +0000 Subject: [PATCH] 2006-07-09 Dan Williams * gnome/applet/applet.c - (nma_destroy): don't pass NULL to notify_notification_close (RH #197917) git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1865 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- ChangeLog | 6 ++++++ gnome/applet/applet.c | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7929a4871d..6589ee582c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-07-09 Dan Williams + + * gnome/applet/applet.c + - (nma_destroy): don't pass NULL to notify_notification_close + (RH #197917) + 2006-07-09 Dan Williams * gnome/applet/applet.c diff --git a/gnome/applet/applet.c b/gnome/applet/applet.c index 5b17bc39d5..de5ae140cf 100644 --- a/gnome/applet/applet.c +++ b/gnome/applet/applet.c @@ -2450,8 +2450,11 @@ static void G_GNUC_NORETURN nma_destroy (NMApplet *applet) nmi_passphrase_dialog_destroy (applet); #ifdef ENABLE_NOTIFY - notify_notification_close (applet->notification, NULL); - g_object_unref (applet->notification); + if (applet->notification) + { + notify_notification_close (applet->notification, NULL); + g_object_unref (applet->notification); + } #endif if (applet->redraw_timeout_id > 0)