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:
parent
0dbfd281c9
commit
2f53972523
@ -121,8 +121,10 @@ void window_destroy(WINDOW_REC *window)
|
|||||||
g_free_not_null(window->name);
|
g_free_not_null(window->name);
|
||||||
g_free(window);
|
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);
|
window_set_active(windows->data);
|
||||||
|
}
|
||||||
|
|
||||||
windows_pack(refnum);
|
windows_pack(refnum);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user