dbus/dbus dbus-connection.c,1.101,1.102

Joe Shaw joe at freedesktop.org
Tue Mar 8 12:45:05 PST 2005


Update of /cvs/dbus/dbus/dbus
In directory gabe:/tmp/cvs-serv30304/dbus

Modified Files:
	dbus-connection.c 
Log Message:
2005-03-08  Joe Shaw  <joeshaw at novell.com>
                                                                                
        * dbus/dbus-connection.c (dbus_connection_send_with_reply):
        After we attach our pending call to the connection, unref
        it.  Fixes a leak.
 
        * mono/Connection.cs (set_RawConnection): Disconnect our
        filter and match callbacks from the old connection and
        reconnect them to the new connection, if any.

	* mono/DBusType/Array.cs: "Code" is a static member, so
	don't use "this" to refer to it.  Fix for stricter checking
	in Mono 1.1.4.
 
        * mono/DBusType/ObjectPath.cs (Append): Don't leak the
	object path that we pass into unmanaged code.
 
        * mono/DBusType/String.cs (Append): Don't leak the string
	that we pass into unmanged code.

Index: dbus-connection.c
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-connection.c,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -d -r1.101 -r1.102
--- dbus-connection.c	26 Feb 2005 06:37:46 -0000	1.101
+++ dbus-connection.c	8 Mar 2005 20:45:03 -0000	1.102
@@ -2459,7 +2459,9 @@
   if (!_dbus_connection_attach_pending_call_unlocked (connection,
 						      pending))
     goto error;
-  
+ 
+  dbus_pending_call_unref (pending);
+ 
   if (!_dbus_connection_send_unlocked_no_update (connection, message, NULL))
     {
       _dbus_connection_detach_pending_call_and_unlock (connection,



More information about the dbus-commit mailing list