From 664d8d1e137b629932732832c1a0fff65e94cba3 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Thu, 7 Nov 2019 13:08:18 +0100 Subject: [PATCH] vbscript: Fix destroying safearrays in release_exec. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/vbscript/interp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/vbscript/interp.c b/dlls/vbscript/interp.c index 3dfcf1e7f7c..cf21601ecc7 100644 --- a/dlls/vbscript/interp.c +++ b/dlls/vbscript/interp.c @@ -2274,7 +2274,7 @@ static void release_exec(exec_ctx_t *ctx) } if(ctx->arrays) { - for(i=0; i < ctx->func->var_cnt; i++) { + for(i=0; i < ctx->func->array_cnt; i++) { if(ctx->arrays[i]) SafeArrayDestroy(ctx->arrays[i]); }