Commit 59e00860 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

jscript/tests: Fix variant leak after conversion when testing VariantChangeType.

parent 8f82586f
......@@ -173,6 +173,7 @@ static void test_change_type(IVariantChangeType *change_type, VARIANT *src, cons
else {
call_change_type(change_type, &v, src, VT_UNKNOWN);
ok(V_UNKNOWN(&v) == V_UNKNOWN(src), "V_UNKNOWN(v) != V_UNKNOWN(src)\n");
VariantClear(&v);
}
if(V_VT(src) != VT_DISPATCH)
......@@ -180,6 +181,7 @@ static void test_change_type(IVariantChangeType *change_type, VARIANT *src, cons
else {
call_change_type(change_type, &v, src, VT_DISPATCH);
ok(V_DISPATCH(&v) == V_DISPATCH(src), "V_DISPATCH(v) != V_DISPATCH(src)\n");
VariantClear(&v);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment