mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02: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
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue