pidgin/plugins/ticker/ticker.c

changeset 20857
1d07c6e94460
parent 19859
71d37b57eff2
child 20288
5ca925a094e2
--- a/pidgin/plugins/ticker/ticker.c	Thu Oct 04 14:36:45 2007 +0000
+++ b/pidgin/plugins/ticker/ticker.c	Thu Oct 04 18:14:10 2007 +0000
@@ -124,8 +124,10 @@
 static gboolean buddy_ticker_set_pixmap_cb(gpointer data) {
 	TickerData *td = data;
 
-	buddy_ticker_update_contact(td->contact);
-	td->timeout = 0;
+	if (g_list_find(tickerbuds, td) != NULL) {
+		buddy_ticker_update_contact(td->contact);
+		td->timeout = 0;
+	}
 
 	return FALSE;
 }

mercurial