Module: wine Branch: master Commit: 6d6ea43d386d6b42c01ee8caca5e3afc52a780e8 URL: https://gitlab.winehq.org/wine/wine/-/commit/6d6ea43d386d6b42c01ee8caca5e3af...
Author: Alex Henrie alexhenrie24@gmail.com Date: Thu Nov 2 21:34:41 2023 -0600
mp3dmod: Use CRT allocation functions.
---
dlls/mp3dmod/mp3dmod.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/mp3dmod/mp3dmod.c b/dlls/mp3dmod/mp3dmod.c index 12c34421ce9..842be5889da 100644 --- a/dlls/mp3dmod/mp3dmod.c +++ b/dlls/mp3dmod/mp3dmod.c @@ -31,7 +31,6 @@ #include "rpcproxy.h" #include "wmcodecdsp.h" #include "wine/debug.h" -#include "wine/heap.h"
#include "initguid.h" DEFINE_GUID(WMMEDIATYPE_Audio, 0x73647561,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71); @@ -107,7 +106,7 @@ static ULONG WINAPI Unknown_Release(IUnknown *iface) MoFreeMediaType(&This->intype); MoFreeMediaType(&This->outtype); mpg123_delete(This->mh); - heap_free(This); + free(This); } return refcount; } @@ -575,7 +574,7 @@ static HRESULT create_mp3_decoder(IUnknown *outer, REFIID iid, void **obj) HRESULT hr; int err;
- if (!(This = heap_alloc_zero(sizeof(*This)))) + if (!(This = calloc(1, sizeof(*This)))) return E_OUTOFMEMORY;
This->IUnknown_inner.lpVtbl = &Unknown_vtbl;