Commit c9d4b515 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

diasymreader: Use CRT allocation functions.

parent 06294b0d
......@@ -95,7 +95,7 @@ static ULONG WINAPI ClassFactoryImpl_Release(IClassFactory *iface)
TRACE("(%p) refcount=%lu\n", iface, ref);
if (ref == 0)
HeapFree(GetProcessHeap(), 0, This);
free(This);
return ref;
}
......@@ -133,7 +133,7 @@ static HRESULT ClassFactoryImpl_Constructor(const classinfo *info, REFIID riid,
*ppv = NULL;
This = HeapAlloc(GetProcessHeap(), 0, sizeof(ClassFactoryImpl));
This = malloc(sizeof(ClassFactoryImpl));
if (!This) return E_OUTOFMEMORY;
This->IClassFactory_iface.lpVtbl = &ClassFactoryImpl_Vtbl;
......
......@@ -28,7 +28,6 @@
#include "wine/mscvpdb.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "diasymreader_private.h"
......@@ -107,7 +106,7 @@ static ULONG WINAPI SymDocumentWriter_Release(ISymUnmanagedDocumentWriter *iface
if (ref == 0)
{
heap_free(This);
free(This);
}
return ref;
......@@ -187,7 +186,7 @@ static ULONG WINAPI SymWriter_Release(ISymUnmanagedWriter5 *iface)
{
This->lock.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&This->lock);
heap_free(This);
free(This);
}
return ref;
......@@ -205,7 +204,7 @@ static HRESULT WINAPI SymWriter_DefineDocument(ISymUnmanagedWriter5 *iface, cons
if (!pRetVal)
return E_POINTER;
result = heap_alloc(sizeof(*result));
result = malloc(sizeof(*result));
if (!result)
return E_OUTOFMEMORY;
......@@ -596,7 +595,7 @@ HRESULT SymWriter_CreateInstance(REFIID iid, void **ppv)
SymWriter *This;
HRESULT hr;
This = heap_alloc(sizeof(*This));
This = malloc(sizeof(*This));
if (!This)
return E_OUTOFMEMORY;
......
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