[gconf] gconf-dbus: Don't crash when reply is NULL in gconf_engine_notify_remove()



commit ad3bc4f4fc78749e0d4bf2bfc2cd8045e2570f3f
Author: JiÅÃ KlimeÅ <jklimes redhat com>
Date:   Mon Oct 10 13:18:04 2011 +0200

    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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gconf/gconf-dbus.c b/gconf/gconf-dbus.c
index 76b01ce..817a1f9 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 *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]