wmvcore: Use CRT allocation functions.

This commit is contained in:
Alex Henrie 2023-11-02 22:21:57 -06:00 committed by Alexandre Julliard
parent 726c5df58f
commit dfa0c9d28d
2 changed files with 4 additions and 6 deletions

View file

@ -27,7 +27,6 @@
#include "wmsdk.h"
#include "wine/debug.h"
#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL(wmvcore);
@ -146,7 +145,7 @@ static ULONG WINAPI WMProfileManager_Release(IWMProfileManager2 *iface)
TRACE("(%p) ref=%ld\n", This, ref);
if(!ref)
heap_free(This);
free(This);
return ref;
}
@ -227,7 +226,7 @@ HRESULT WINAPI WMCreateProfileManager(IWMProfileManager **ret)
TRACE("(%p)\n", ret);
profile_mgr = heap_alloc(sizeof(*profile_mgr));
profile_mgr = malloc(sizeof(*profile_mgr));
if(!profile_mgr)
return E_OUTOFMEMORY;

View file

@ -20,7 +20,6 @@
#include "wmsdkidl.h"
#include "wine/debug.h"
#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL(wmvcore);
@ -82,7 +81,7 @@ static ULONG WINAPI WMWriter_Release(IWMWriter *iface)
TRACE("(%p) ref=%ld\n", This, ref);
if(!ref)
heap_free(This);
free(This);
return ref;
}
@ -359,7 +358,7 @@ HRESULT WINAPI WMCreateWriter(IUnknown *reserved, IWMWriter **writer)
TRACE("(%p %p)\n", reserved, writer);
ret = heap_alloc(sizeof(*ret));
ret = malloc(sizeof(*ret));
if(!ret)
return E_OUTOFMEMORY;