diff options
author | Senko Rasic <senko.rasic@collabora.co.uk> | 2010-04-14 13:18:51 +0200 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-04-15 19:16:13 +0100 |
commit | bce98dcad2fc6f7ad34b645d6b3d58ec2849e7d0 (patch) | |
tree | 8decf5c942cece6dc470b599bbcf030cb61d5f6b | |
parent | fb0dc6853ac6109da9aaa11f5b9c464379613ff4 (diff) | |
download | telepathy-mission-control-bce98dcad2fc6f7ad34b645d6b3d58ec2849e7d0.tar.gz |
_mcd_client_recover_observer: don't leak connection reference
-rw-r--r-- | src/mcd-client.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mcd-client.c b/src/mcd-client.c index 51fe016b..d8aab387 100644 --- a/src/mcd-client.c +++ b/src/mcd-client.c @@ -606,9 +606,7 @@ _mcd_client_recover_observer (McdClientProxy *self, TpChannel *channel, tp_asv_set_boolean (observer_info, "recovering", TRUE); channels_array = _mcd_tp_channel_details_build_from_tp_chan (channel); - g_object_get (channel, - "connection", &conn, - NULL); + conn = tp_channel_borrow_connection (channel); connection_path = tp_proxy_get_object_path (conn); DEBUG ("calling ObserveChannels on %s for channel %p", |