diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-27 18:26:22 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-27 18:26:22 +0000 |
commit | 2f539725231379b47e7470319a611a059aa41433 (patch) | |
tree | a8614352cbe41737307fa2213d351d4cb8939839 /src | |
parent | 0dbfd281c93ed672319ee34defe67a40452c79e0 (diff) | |
download | irssi-2f539725231379b47e7470319a611a059aa41433.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/windows.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |