dbus/glib dbus-gproxy.c,1.40,1.41

Ross Burton ross at freedesktop.org
Wed Aug 17 10:30:47 PDT 2005


Update of /cvs/dbus/dbus/glib
In directory gabe:/tmp/cvs-serv28303/glib

Modified Files:
	dbus-gproxy.c 
Log Message:
Unref message and protect against NULL

Index: dbus-gproxy.c
===================================================================
RCS file: /cvs/dbus/dbus/glib/dbus-gproxy.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- dbus-gproxy.c	4 Aug 2005 15:49:30 -0000	1.40
+++ dbus-gproxy.c	17 Aug 2005 17:30:45 -0000	1.41
@@ -2342,6 +2342,9 @@
   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 @@
                              message,
                              NULL))
     goto oom;
-
+  dbus_message_unref (message);
   return;
   
  oom:



More information about the dbus-commit mailing list