# HG changeset patch # User Daniel Atallah # Date 1191593639 0 # Node ID c3f27488c344f6ab1be51afa8d3ddd5cccc8a33c # Parent 996cc19d1f7e7e8628df3b52439680e68825ec7a Fix from "xjoe" to prevent a crash in the win32 transparency plugin when the conversation isn't (yet?) in a window. Fixes #3452. diff -r 996cc19d1f7e -r c3f27488c344 pidgin/plugins/win32/transparency/win2ktrans.c --- 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); }