pidgin/plugins/win32/transparency/win2ktrans.c

changeset 20877
0f78b563788f
parent 19867
57797f0c8384
child 20288
5ca925a094e2
--- a/pidgin/plugins/win32/transparency/win2ktrans.c	Fri Oct 05 06:24:13 2007 +0000
+++ b/pidgin/plugins/win32/transparency/win2ktrans.c	Fri Oct 05 14:13:59 2007 +0000
@@ -229,7 +229,7 @@
 conversation_delete_cb(PurpleConversation *conv) {
 	PidginWindow *win = pidgin_conv_get_window(PIDGIN_CONVERSATION(conv));
 	/* If it is the last conversation in the window, cleanup */
-	if (pidgin_conv_window_get_gtkconv_count(win) == 1)
+	if (win != NULL && pidgin_conv_window_get_gtkconv_count(win) == 1)
 		cleanup_conv_window(win);
 }
 

mercurial