Commit ca1c5862 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mf/tests: Remove remaining kernel32 heap calls.

parent cc1a9e23
......@@ -1562,7 +1562,7 @@ static ULONG WINAPI test_source_Release(IMFMediaSource *iface)
ULONG refcount = InterlockedDecrement(&source->refcount);
if (!refcount)
HeapFree(GetProcessHeap(), 0, source);
free(source);
return refcount;
}
......@@ -1650,7 +1650,7 @@ static IMFMediaSource *create_test_source(void)
{
struct test_source *source;
source = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*source));
source = calloc(1, sizeof(*source));
source->IMFMediaSource_iface.lpVtbl = &test_source_vtbl;
source->refcount = 1;
......
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