empathy r2214 - trunk/libempathy
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2214 - trunk/libempathy
- Date: Fri, 9 Jan 2009 16:16:49 +0000 (UTC)
Author: xclaesse
Date: Fri Jan 9 16:16:49 2009
New Revision: 2214
URL: http://svn.gnome.org/viewvc/empathy?rev=2214&view=rev
Log:
Use tp_channel_borrow_connection instead of g_object_get. This fix a leak.
Modified:
trunk/libempathy/empathy-dispatcher.c
Modified: trunk/libempathy/empathy-dispatcher.c
==============================================================================
--- trunk/libempathy/empathy-dispatcher.c (original)
+++ trunk/libempathy/empathy-dispatcher.c Fri Jan 9 16:16:49 2009
@@ -275,7 +275,7 @@
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? */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]