/pidgin/main: ab10a481e30f: Fix a crash when closing conversatio...

Tomasz Wasilczyk tomkiewicz at cpw.pidgin.im
Wed Sep 12 08:10:48 EDT 2012


Changeset: ab10a481e30f57be30ef85d69738f67bf4b887e2
Author:	 Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date:	 2012-09-12 14:09 +0200
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/ab10a481e30f

Description:

Fix a crash when closing conversation window

diffstat:

 pidgin/gtkconv.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (21 lines):

diff --git a/pidgin/gtkconv.c b/pidgin/gtkconv.c
--- a/pidgin/gtkconv.c
+++ b/pidgin/gtkconv.c
@@ -10114,12 +10114,12 @@ pidgin_conv_window_new()
 void
 pidgin_conv_window_destroy(PidginWindow *win)
 {
-	PidginConversation *gtkconv;
-	GList *iter;
-
 	if (win->gtkconvs) {
-		for (iter = win->gtkconvs; iter != NULL; iter = iter->next) {
-			gtkconv = iter->data;
+		GList *iter = win->gtkconvs;
+		while (iter)
+		{
+			PidginConversation *gtkconv = iter->data;
+			iter = iter->next;
 			close_conv_cb(NULL, gtkconv);
 		}
 		return;



More information about the Commits mailing list