From c75099cbab3042a3e1af9a8538e33c5580ec8b4c Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 10 May 2002 19:00:38 +0000 Subject: [PATCH] closing /EXEC -interactive window may have crashed irssi. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2768 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-exec.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/fe-common/core/fe-exec.c b/src/fe-common/core/fe-exec.c index 4b7c9ae0..88df56ae 100644 --- a/src/fe-common/core/fe-exec.c +++ b/src/fe-common/core/fe-exec.c @@ -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 =