Don't leak messages when calling methods

This commit is contained in:
Ross Burton 2005-07-15 13:25:48 +00:00
parent 6be5b25a71
commit 16dbb17287
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-07-15 Ross Burton <ross@openedhand.com>
* glib/dbus-gproxy.c:
Fix a leak when calling methods via the proxy.
2005-07-15 Colin Walters <walters@verbum.org>
* bus/selinux.c (bus_selinux_append_context): Wrap in

View file

@ -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;