/pidgin/main: 29cc844aed80: Fix a crash when closing conversatio...

Tomasz Wasilczyk tomkiewicz at cpw.pidgin.im
Sat Feb 2 15:49:36 EST 2013


Changeset: 29cc844aed80dcb5f09a92de8226e982916c2844
Author:	 Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date:	 2012-09-12 14:09 +0200
Branch:	 release-2.x.y
URL: http://hg.pidgin.im/pidgin/main/rev/29cc844aed80

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
@@ -9376,12 +9376,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