[telepathy-mission-control/master] When shooting down unwanted Connections, don't leak the temporary proxy

Simon McVittie simon.mcvittie at collabora.co.uk
Fri Sep 11 10:42:16 PDT 2009


Spotted by wjt while reviewing another branch.

Reviewed-by: Will Thompson <will.thompson at collabora.co.uk>
---
 src/mcd-connection.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mcd-connection.c b/src/mcd-connection.c
index 9612e70..4e4f262 100644
--- a/src/mcd-connection.c
+++ b/src/mcd-connection.c
@@ -1607,6 +1607,7 @@ request_connection_cb (TpConnectionManager *proxy, const gchar *bus_name,
             DEBUG ("Disconnecting it: %s", obj_path);
             dbus_g_proxy_call_no_reply (tmp_proxy, "Disconnect",
                                         G_TYPE_INVALID);
+            g_object_unref (tmp_proxy);
         }
 
         if (connection != NULL)
-- 
1.5.6.5



More information about the telepathy-commits mailing list