# HG changeset patch # User Richard Laager # Date 1139213615 0 # Node ID 05ef36447131b7e3cf2f7e0066e7c8731268a55c # Parent 277c7a62650bf69b135c0196c7532b723edfee62 [gaim-migrate @ 15501] Fix based on SF Patch #1417668 from Sadrul "When you have more than one queued conversations, and you change the `Hide new IM' pref to `Never', Gaim crashes." committer: Tailor Script diff -r 277c7a62650b -r 05ef36447131 src/gtkconv.c --- a/src/gtkconv.c Mon Feb 06 08:06:53 2006 +0000 +++ b/src/gtkconv.c Mon Feb 06 08:13:35 2006 +0000 @@ -6146,7 +6146,8 @@ if(gaim_status_is_available(oldstatus) || !gaim_status_is_available(newstatus)) return; - for (l = hidden_convwin->gtkconvs; l != NULL; l = l->next) { + while ((l = hidden_convwin->gtkconvs) != NULL) + { gtkconv = l->data; conv = gtkconv->active_conv; @@ -6179,7 +6180,8 @@ if(strcmp(gaim_prefs_get_string("/gaim/gtk/conversations/im/hide_new"), "away")==0) when_away = TRUE; - for (l = hidden_convwin->gtkconvs; l != NULL; l = l->next) { + while ((l = hidden_convwin->gtkconvs) != NULL) + { gtkconv = l->data; conv = gtkconv->active_conv;