From 8e29932db3ad9d011977459dadd583293fc65ff0 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 17 Nov 2003 00:18:40 +0000 Subject: crashfix when quitting git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3165 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/mainwindows.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/fe-text') diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c index 0bede313..ab481718 100644 --- a/src/fe-text/mainwindows.c +++ b/src/fe-text/mainwindows.c @@ -301,11 +301,13 @@ void mainwindow_destroy(MAIN_WINDOW_REC *window) term_window_destroy(window->screen_win); - if (!quitting && mainwindows != NULL) { + if (mainwindows != NULL) { gui_windows_remove_parent(window); - mainwindows_add_space(window->first_line, window->last_line); - - mainwindows_redraw(); + if (!quitting) { + mainwindows_add_space(window->first_line, + window->last_line); + mainwindows_redraw(); + } } g_free(window); -- cgit v1.2.3