summaryrefslogtreecommitdiff
path: root/glib
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2005-07-15 13:25:48 +0000
committerRoss Burton <ross@openedhand.com>2005-07-15 13:25:48 +0000
commit16dbb17287c183c6f4e749a33fcffe6c03cb5766 (patch)
treecc940cb62941b8d7d5cf314c18ae30eaafca633c /glib
parent6be5b25a71ec6b4e7efb35f20fc1f5357be5cffb (diff)
downloaddbus-16dbb17287c183c6f4e749a33fcffe6c03cb5766.tar.gz
Don't leak messages when calling methods
Diffstat (limited to 'glib')
-rw-r--r--glib/dbus-gproxy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/glib/dbus-gproxy.c b/glib/dbus-gproxy.c
index 929e52e4..0ebff603 100644
--- a/glib/dbus-gproxy.c
+++ b/glib/dbus-gproxy.c
@@ -2045,6 +2045,7 @@ dbus_g_proxy_begin_call_internal (DBusGProxy *proxy,
&pending,
-1))
goto oom;
+ dbus_message_unref (message);
g_assert (pending != NULL);
call_id = ++proxy->call_id_counter;