changeset 32589:d273b747de14

Fix a crash at closing the conversation window. Patch suggested by Paul.
author masca@cpw.pidgin.im
date Wed, 07 Sep 2011 04:35:38 +0000
parents 472e70ea58ed
children 0e94b0815349
files pidgin/gtkconv.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Mon Sep 05 02:14:18 2011 +0000
+++ b/pidgin/gtkconv.c	Wed Sep 07 04:35:38 2011 +0000
@@ -440,7 +440,8 @@
 static void clear_conversation_scrollback_cb(PurpleConversation *conv,
 		void *data)
 {
-	clear_conversation_scrollback(conv);
+	if (PIDGIN_CONVERSATION(conv))
+		clear_conversation_scrollback(conv);
 }
 static PurpleCmdRet
 clear_command_cb(PurpleConversation *conv,