Commit bb08a589 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

oleaut32: Clear the input pvar structure in VARIANT_UserUnmarshal to free the…

oleaut32: Clear the input pvar structure in VARIANT_UserUnmarshal to free the data instead of just initializing.
parent 3ad77d29
......@@ -1188,7 +1188,6 @@ static void test_marshal_VARIANT(void)
V_VT(V_VARIANTREF(&v)), V_VT(V_VARIANTREF(&v3)));
ok(V_R8(V_VARIANTREF(&v)) == V_R8(V_VARIANTREF(&v3)), "r8s differ\n");
VARIANT_UserFree(&umcb.Flags, &v3);
todo_wine
ok(heap_unknown->refs == 1, "%d refcounts of IUnknown leaked\n", heap_unknown->refs - 1);
IUnknown_Release((IUnknown *)heap_unknown);
}
......
......@@ -554,7 +554,7 @@ unsigned char * WINAPI VARIANT_UserUnmarshal(ULONG *pFlags, unsigned char *Buffe
TRACE("(%x,%p,%p)\n", *pFlags, Buffer, pvar);
ALIGN_POINTER(Buffer, 7);
VariantInit(pvar);
VariantClear(pvar);
header = (variant_wire_t *)Buffer;
......
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