From ad3bc4f4fc78749e0d4bf2bfc2cd8045e2570f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Mon, 10 Oct 2011 13:18:04 +0200 Subject: gconf-dbus: Don't crash when reply is NULL in gconf_engine_notify_remove() Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=661372 --- gconf/gconf-dbus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gconf/gconf-dbus.c b/gconf/gconf-dbus.c index 76b01ce3..817a1f99 100644 --- a/gconf/gconf-dbus.c +++ b/gconf/gconf-dbus.c @@ -1110,7 +1110,8 @@ gconf_engine_notify_remove (GConfEngine* conf, g_free (namespace_section); - dbus_message_unref (reply); + if (reply != NULL) + dbus_message_unref (reply); } GConfValue * -- cgit v1.2.1