summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2008-02-27 14:02:36 +0000
committerColin Walters <walters@verbum.org>2010-04-28 13:12:48 -0400
commitcce22be1996459578ac25790ce9b9fea60105c27 (patch)
tree20b22b445604e18fe38c085927e10d86c37e3bac
parent3c15bfec503784f845707d3bd7a7164f9970b73b (diff)
Unref the connection and message on dbus_g_return_error
-rw-r--r--dbus/dbus-gobject.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dbus/dbus-gobject.c b/dbus/dbus-gobject.c
index 3cbdf51..ec93ad4 100644
--- a/dbus/dbus-gobject.c
+++ b/dbus/dbus-gobject.c
@@ -2145,6 +2145,9 @@ dbus_g_method_return_error (DBusGMethodInvocation *context, GError *error)
reply = gerror_to_dbus_error_message (context->object, dbus_g_message_get_message (context->message), error);
dbus_connection_send (dbus_g_connection_get_connection (context->connection), reply, NULL);
dbus_message_unref (reply);
+
+ dbus_g_connection_unref (context->connection);
+ dbus_g_message_unref (context->message);
g_free (context);
}