potential crashfix

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3173 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2003-11-17 18:13:17 +00:00 committed by cras
commit 4405092282

View file

@ -159,8 +159,8 @@ void mainwindow_change_active(MAIN_WINDOW_REC *mainwin,
} }
} }
/* no more non-sticky windows, remove main window */
window_set_active(other); window_set_active(other);
if (mainwindows->next != NULL)
mainwindow_destroy(mainwin); mainwindow_destroy(mainwin);
} }