Commit 7ab7e299 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

ole32/git: Use CRT allocation functions.

parent 0f72487b
......@@ -182,7 +182,7 @@ StdGlobalInterfaceTable_RegisterInterfaceInGlobal(
zero.QuadPart = 0;
IStream_Seek(stream, zero, STREAM_SEEK_SET, NULL);
entry = HeapAlloc(GetProcessHeap(), 0, sizeof(StdGITEntry));
entry = malloc(sizeof(*entry));
if (!entry)
{
CoReleaseMarshalData(stream);
......@@ -241,7 +241,7 @@ StdGlobalInterfaceTable_RevokeInterfaceFromGlobal(
}
IStream_Release(entry->stream);
HeapFree(GetProcessHeap(), 0, entry);
free(entry);
return S_OK;
}
......@@ -306,7 +306,7 @@ HRESULT WINAPI GlobalInterfaceTable_CreateInstance(IClassFactory *iface, IUnknow
if (!std_git)
{
git = heap_alloc(sizeof(*git));
git = malloc(sizeof(*git));
if (!git) return E_OUTOFMEMORY;
git->IGlobalInterfaceTable_iface.lpVtbl = &StdGlobalInterfaceTableImpl_Vtbl;
......@@ -315,7 +315,7 @@ HRESULT WINAPI GlobalInterfaceTable_CreateInstance(IClassFactory *iface, IUnknow
if (InterlockedCompareExchangePointer((void **)&std_git, &git->IGlobalInterfaceTable_iface, NULL))
{
heap_free(git);
free(git);
}
else
TRACE("Created the GIT %p\n", git);
......@@ -338,8 +338,8 @@ void release_std_git(void)
CoReleaseMarshalData(entry->stream);
IStream_Release(entry->stream);
HeapFree(GetProcessHeap(), 0, entry);
free(entry);
}
HeapFree(GetProcessHeap(), 0, git);
free(git);
}
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