--- a/src/prpl.c Thu Oct 04 19:36:49 2001 +0000 +++ b/src/prpl.c Thu Oct 04 23:10:51 2001 +0000 @@ -362,7 +362,11 @@ static void des_email_win(GtkWidget *w, struct mail_notify *mn) { - gtk_widget_destroy(mn->email_win); + if (w != mn->email_win) { + gtk_widget_destroy(mn->email_win); + return; + } + debug_printf("removing mail notification\n"); mailnots = g_slist_remove(mailnots, mn); g_free(mn); }