oleaut32/tests: Fix invalid free (found by valgrind).

This commit is contained in:
Jon Griffiths 2008-06-18 18:27:04 -07:00 committed by Alexandre Julliard
parent 3aa36b53ca
commit eb0566972a
1 changed files with 1 additions and 1 deletions

View File

@ -5780,7 +5780,7 @@ static void test_ClearCustData(void)
* its memory, while Wine uses HeapAlloc(). Doing this ensures we allocate
* using the correct function whether with native or builtin.
*/
ci.prgCustData = (LPCUSTDATAITEM)SysAllocStringByteLen((LPCSTR)buff, sizeof(buff));
ci.prgCustData = (LPCUSTDATAITEM)Get(SysAllocStringByteLen((LPCSTR)buff, sizeof(buff)));
for (i = 0; i < NUM_CUST_ITEMS; i++)
VariantInit(&ci.prgCustData[i].varValue);
pClearCustData(&ci);