Mercurial > pidgin
changeset 20788:c3f27488c344
Fix from "xjoe" to prevent a crash in the win32 transparency plugin when the conversation isn't (yet?) in a window. Fixes #3452.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 05 Oct 2007 14:13:59 +0000 |
parents | 996cc19d1f7e |
children | 6736c1168c50 |
files | pidgin/plugins/win32/transparency/win2ktrans.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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); }