1
0
mirror of https://github.com/irssi/irssi.git synced 2025-01-03 14:56:47 -05:00

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
This commit is contained in:
Timo Sirainen 2000-06-27 18:26:22 +00:00 committed by cras
parent 0dbfd281c9
commit 2f53972523

View File

@ -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);
}