jscript: Avoid cleaning an uninitialized variable.
This commit is contained in:
parent
c374fe9bdb
commit
bf066791e0
|
@ -2629,11 +2629,8 @@ HRESULT exec_source(exec_ctx_t *ctx, bytecode_t *code, source_elements_t *source
|
||||||
|
|
||||||
assert(ctx->script->exec_ctx == ctx);
|
assert(ctx->script->exec_ctx == ctx);
|
||||||
ctx->script->exec_ctx = prev_ctx;
|
ctx->script->exec_ctx = prev_ctx;
|
||||||
|
if(FAILED(hres))
|
||||||
if(FAILED(hres)) {
|
|
||||||
VariantClear(&val);
|
|
||||||
return hres;
|
return hres;
|
||||||
}
|
|
||||||
|
|
||||||
if(retv)
|
if(retv)
|
||||||
*retv = val;
|
*retv = val;
|
||||||
|
|
Loading…
Reference in New Issue