gossip r2729 - in trunk: . src



Author: carlosg
Date: Fri Feb  8 15:25:28 2008
New Revision: 2729
URL: http://svn.gnome.org/viewvc/gossip?rev=2729&view=rev

Log:
2008-02-08  Carlos Garnacho  <carlos imendio com>

        * src/gossip-app.c (app_reconnect_remove)
        (app_session_protocol_disconnected_cb): store/retrieve correctly the
        timeout IDs in the hashtable. So it doesn't leave timeout functions
        running when the wrong source ID is removed.


Modified:
   trunk/ChangeLog
   trunk/src/gossip-app.c

Modified: trunk/src/gossip-app.c
==============================================================================
--- trunk/src/gossip-app.c	(original)
+++ trunk/src/gossip-app.c	Fri Feb  8 15:25:28 2008
@@ -1656,10 +1656,10 @@
 static void
 app_reconnect_remove (gpointer data)
 {
-	guint *id;
+	guint id;
 
-	id = (guint*) data;
-	g_source_remove (*id);
+	id = GPOINTER_TO_UINT (data);
+	g_source_remove (id);
 }
 
 static gboolean
@@ -1730,7 +1730,7 @@
 				    account);
 		g_hash_table_insert (priv->reconnects,
 				     g_object_ref (account),
-				     &id);
+				     GUINT_TO_POINTER (id));
 	}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]