mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-01 18:58:29 +00:00
wmvcore: Use CRT allocation functions.
This commit is contained in:
parent
726c5df58f
commit
dfa0c9d28d
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue