From 408fa0ee93aa270618f239e5505220dc10bd04a4 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 31 May 2011 10:49:12 +0100 Subject: ensure_database: don't free the reply til we've finished with its args Bug: https://bugzilla.gnome.org/show_bug.cgi?id=654497 Bug-NB: NB#261472 Reviewed-by: Cosimo Alfarano Reviewed-by: Ross Burton --- gconf/gconf-dbus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gconf') diff --git a/gconf/gconf-dbus.c b/gconf/gconf-dbus.c index 8071e94b..63655e17 100644 --- a/gconf/gconf-dbus.c +++ b/gconf/gconf-dbus.c @@ -548,20 +548,20 @@ ensure_database (GConfEngine *conf, DBUS_TYPE_STRING, &db, DBUS_TYPE_INVALID); - dbus_message_unref (reply); - if (db == NULL) { if (err) *err = gconf_error_new (GCONF_ERROR_BAD_ADDRESS, _("Server couldn't resolve the address `%s'"), conf->persistent_address); - + + dbus_message_unref (reply); return FALSE; } gconf_engine_set_database (conf, db); + dbus_message_unref (reply); return TRUE; } -- cgit v1.2.1