summaryrefslogtreecommitdiff
path: root/glib
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2005-08-17 17:30:45 +0000
committerRoss Burton <ross@openedhand.com>2005-08-17 17:30:45 +0000
commite5268be6b33e98cd4da0090da7cb2e3ab534c57a (patch)
treef667c4fedad832a0811ed9a9175996d36f0f95c7 /glib
parentce84a7761a567f5afaca03d0fb5c0378f293da80 (diff)
downloaddbus-e5268be6b33e98cd4da0090da7cb2e3ab534c57a.tar.gz
Unref message and protect against NULL
Diffstat (limited to 'glib')
-rw-r--r--glib/dbus-gproxy.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/glib/dbus-gproxy.c b/glib/dbus-gproxy.c
index ca1b5544..8a68b663 100644
--- a/glib/dbus-gproxy.c
+++ b/glib/dbus-gproxy.c
@@ -2342,6 +2342,9 @@ dbus_g_proxy_call (DBusGProxy *proxy,
va_list args;
GValueArray *in_args;
+ g_return_val_if_fail (DBUS_IS_G_PROXY (proxy), FALSE);
+ g_return_val_if_fail (!DBUS_G_PROXY_DESTROYED (proxy), FALSE);
+
va_start (args, first_arg_type);
DBUS_G_VALUE_ARRAY_COLLECT_ALL (in_args, first_arg_type, args);
@@ -2399,7 +2402,7 @@ dbus_g_proxy_call_no_reply (DBusGProxy *proxy,
message,
NULL))
goto oom;
-
+ dbus_message_unref (message);
return;
oom: