]> git.0d.be Git - empathy.git/commitdiff
Use tp_channel_borrow_connection instead of g_object_get. This fix a leak.
authorXavier Claessens <xclaesse@src.gnome.org>
Fri, 9 Jan 2009 16:16:49 +0000 (16:16 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 9 Jan 2009 16:16:49 +0000 (16:16 +0000)
svn path=/trunk/; revision=2214

libempathy/empathy-dispatcher.c

index 711d7c854bea429a82229dd8be2558e8e3263eac..337cb8daca3246a1a9dc74504003df54d5abcb3c 100644 (file)
@@ -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? */