Commit 3bda0653 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

ole32/tests: Free what get_stgdef returns in test_OleCreateStaticFromData.

parent 41d923a4
......@@ -4549,6 +4549,7 @@ static void test_OleCreateStaticFromData(void)
IPersist_Release(persist);
IStorage_Release(storage);
IOleObject_Release(ole_obj);
HeapFree(GetProcessHeap(), 0, (void *)stg_def_dib.stream[2].data);
/* CF_ENHMETAFILE */
hr = CreateILockBytesOnHGlobal(NULL, TRUE, &ilb);
......@@ -4582,6 +4583,7 @@ static void test_OleCreateStaticFromData(void)
IPersist_Release(persist);
IStorage_Release(storage);
IOleObject_Release(ole_obj);
HeapFree(GetProcessHeap(), 0, (void *)stg_def_emf.stream[2].data);
/* CF_TEXT */
hr = CreateILockBytesOnHGlobal(NULL, TRUE, &ilb);
......
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