mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
closing /EXEC -interactive window may have crashed irssi.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2768 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
5b5cd255e9
commit
c75099cbab
@ -47,8 +47,9 @@ static void exec_wi_destroy(EXEC_WI_REC *rec)
|
||||
g_return_if_fail(rec != NULL);
|
||||
|
||||
if (rec->destroying) return;
|
||||
rec->destroying = TRUE;
|
||||
rec->destroying = TRUE;
|
||||
|
||||
rec->process->target_item = NULL;
|
||||
if (window_item_window((WI_ITEM_REC *) rec) != NULL)
|
||||
window_item_destroy((WI_ITEM_REC *) rec);
|
||||
|
||||
@ -464,10 +465,8 @@ static void handle_exec(const char *args, GHashTable *optlist,
|
||||
g_free_and_null(rec->target);
|
||||
rec->target_win = active_win;
|
||||
|
||||
if (rec->target_item != NULL) {
|
||||
if (rec->target_item != NULL)
|
||||
exec_wi_destroy(rec->target_item);
|
||||
rec->target_item = NULL;
|
||||
}
|
||||
|
||||
if (interactive) {
|
||||
rec->target_item =
|
||||
|
Loading…
Reference in New Issue
Block a user