summaryrefslogtreecommitdiffstats
path: root/dbus
diff options
context:
space:
mode:
authorJoe Shaw <joeshaw@novell.com>2005-03-08 20:45:03 +0000
committerJoe Shaw <joeshaw@novell.com>2005-03-08 20:45:03 +0000
commitd96c9e465abb291cb943a1b4ec3643de4b3f6423 (patch)
treee39796b0e824648366a8f2ea606e3a4cef53a434 /dbus
parent2ebf5709efd40f6a15f2433d5f23a1b615f6cc5d (diff)
2005-03-08 Joe Shaw <joeshaw@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.
Diffstat (limited to 'dbus')
-rw-r--r--dbus/dbus-connection.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dbus/dbus-connection.c b/dbus/dbus-connection.c
index 92e0331b..db76ba22 100644
--- a/dbus/dbus-connection.c
+++ b/dbus/dbus-connection.c
@@ -2459,7 +2459,9 @@ dbus_connection_send_with_reply (DBusConnection *connection,
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,