vbscript: Fix destroying safearrays in release_exec.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2019-11-07 13:08:18 +01:00 committed by Alexandre Julliard
parent 244268589e
commit 664d8d1e13
1 changed files with 1 additions and 1 deletions

View File

@ -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]);
}