From 4405092282ddcb825f215bd3fb40dfd36544df25 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 17 Nov 2003 18:13:17 +0000 Subject: [PATCH] potential crashfix git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3173 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/mainwindows.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c index ab481718..03fdeda8 100644 --- a/src/fe-text/mainwindows.c +++ b/src/fe-text/mainwindows.c @@ -159,9 +159,9 @@ void mainwindow_change_active(MAIN_WINDOW_REC *mainwin, } } - /* no more non-sticky windows, remove main window */ window_set_active(other); - mainwindow_destroy(mainwin); + if (mainwindows->next != NULL) + mainwindow_destroy(mainwin); } void mainwindows_recreate(void)