aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-10 00:16:49 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-10 00:16:49 +0800
commit10aa0f4dadebf7bc2e45ff6592cc37d3ac6310f4 (patch)
tree5b1f000f0697d7c7ff0db0a13fa17eb5b6f19731 /libempathy
parent25658b2c18f1441a2f3c0c4ae34b8709c8cbc9c3 (diff)
downloadgsoc2013-empathy-10aa0f4dadebf7bc2e45ff6592cc37d3ac6310f4.tar
gsoc2013-empathy-10aa0f4dadebf7bc2e45ff6592cc37d3ac6310f4.tar.gz
gsoc2013-empathy-10aa0f4dadebf7bc2e45ff6592cc37d3ac6310f4.tar.bz2
gsoc2013-empathy-10aa0f4dadebf7bc2e45ff6592cc37d3ac6310f4.tar.lz
gsoc2013-empathy-10aa0f4dadebf7bc2e45ff6592cc37d3ac6310f4.tar.xz
gsoc2013-empathy-10aa0f4dadebf7bc2e45ff6592cc37d3ac6310f4.tar.zst
gsoc2013-empathy-10aa0f4dadebf7bc2e45ff6592cc37d3ac6310f4.zip
Use tp_channel_borrow_connection instead of g_object_get. This fix a leak.
svn path=/trunk/; revision=2214
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-dispatcher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c
index 711d7c854..337cb8dac 100644
--- a/libempathy/empathy-dispatcher.c
+++ b/libempathy/empathy-dispatcher.c
@@ -275,7 +275,7 @@ dispatcher_channel_invalidated_cb (TpProxy *proxy, guint domain, gint code,
ConnectionData *cd;
const gchar *object_path;
- g_object_get (G_OBJECT (proxy), "connection", &connection, NULL);
+ connection = tp_channel_borrow_connection (TP_CHANNEL (proxy));
cd = g_hash_table_lookup (priv->connections, connection);
/* Connection itself invalidated? */