[Telepathy-commits] [telepathy-salut/master] Reference count on XmppConnection: Revert last chunk of 1f0aca2d6a86a814230a9e6d8a9700d85956ac13
Alban Crequy
alban.crequy at collabora.co.uk
Tue Nov 25 03:59:30 PST 2008
---
src/salut-xmpp-connection-manager.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/salut-xmpp-connection-manager.c b/src/salut-xmpp-connection-manager.c
index 491cea2..055e31c 100644
--- a/src/salut-xmpp-connection-manager.c
+++ b/src/salut-xmpp-connection-manager.c
@@ -1360,8 +1360,9 @@ create_new_outgoing_connection (SalutXmppConnectionManager *self,
* open it */
DEBUG ("waiting for remote contact (%s) open the connection",
contact->name);
- g_hash_table_insert (priv->outgoing_pending_connections,
- g_object_ref (connection),
+ /* Don't ref connection, so it can be freed when removed from the
+ * hash table */
+ g_hash_table_insert (priv->outgoing_pending_connections, connection,
g_object_ref (contact));
add_outgoing_timeout (self, connection, contact);
--
1.5.6.5
More information about the Telepathy-commits
mailing list