From 10aa0f4dadebf7bc2e45ff6592cc37d3ac6310f4 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 9 Jan 2009 16:16:49 +0000 Subject: Use tp_channel_borrow_connection instead of g_object_get. This fix a leak. svn path=/trunk/; revision=2214 --- libempathy/empathy-dispatcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libempathy') 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? */ -- cgit v1.2.3