[dconf] fix double free of GError on early async error
- From: Ryan Lortie <ryanl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [dconf] fix double free of GError on early async error
- Date: Wed, 7 Oct 2009 20:43:31 +0000 (UTC)
commit aebeb18bb9a1f5812e2b7124819ac5d5ce12f498
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Oct 7 15:40:25 2009 -0400
fix double free of GError on early async error
dconf/dconf-dbus.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/dconf/dconf-dbus.c b/dconf/dconf-dbus.c
index a174eda..97c92fe 100644
--- a/dconf/dconf-dbus.c
+++ b/dconf/dconf-dbus.c
@@ -590,10 +590,12 @@ dconf_dbus_closure_fire (gpointer user_data)
if (closure->pending)
dbus_pending_call_unref (closure->pending);
+
if (closure->context)
g_main_context_unref (closure->context);
- if (closure->error)
- g_error_free (closure->error);
+
+ if (result.error)
+ g_error_free (result.error);
g_slice_free (DConfDBusClosure, closure);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]