diff -r 122d4dcce40e -r 28587edbfd06 pidgin/gtkconv.c --- a/pidgin/gtkconv.c Sun May 13 10:26:08 2007 +0000 +++ b/pidgin/gtkconv.c Sun May 13 19:52:05 2007 +0000 @@ -7996,6 +7996,9 @@ purple_prefs_disconnect_by_handle(win); window_list = g_list_remove(window_list, win); + if (NULL == win) + return ; + /* Close the "Find" dialog if it's open */ if (win->dialogs.search) gtk_widget_destroy(win->dialogs.search);