diff options
author | Timo Sirainen <cras@irssi.org> | 2003-11-17 00:18:40 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2003-11-17 00:18:40 +0000 |
commit | 8e29932db3ad9d011977459dadd583293fc65ff0 (patch) | |
tree | 2f51d598808766b2ed79896c9a7cf67bb0523806 /src/fe-text | |
parent | 0de9bcc3df68078ef4eef8f1e851da21c3740017 (diff) | |
download | irssi-8e29932db3ad9d011977459dadd583293fc65ff0.zip |
crashfix when quitting
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3165 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/mainwindows.c | 10 |
1 files changed, 6 insertions, 4 deletions
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); |