mf/tests: Remove remaining kernel32 heap calls.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2022-01-31 17:06:46 +03:00 committed by Alexandre Julliard
parent cc1a9e2379
commit ca1c586291
1 changed files with 2 additions and 2 deletions

View File

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