From 2f539725231379b47e7470319a611a059aa41433 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 27 Jun 2000 18:26:22 +0000 Subject: Closing active window that had window items could crash. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@382 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/windows.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fe-common/core/windows.c b/src/fe-common/core/windows.c index b3c1b995..ba92ffd2 100644 --- a/src/fe-common/core/windows.c +++ b/src/fe-common/core/windows.c @@ -121,8 +121,10 @@ void window_destroy(WINDOW_REC *window) g_free_not_null(window->name); g_free(window); - if (active_win == window && windows != NULL) + if (active_win == window && windows != NULL) { + active_win = NULL; /* it's corrupted */ window_set_active(windows->data); + } windows_pack(refnum); } -- cgit v1.2.3