mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:20:56 +00:00
ole32: Release marshal info on error path.
This commit is contained in:
parent
2a1513415d
commit
4d565644b6
|
@ -180,7 +180,12 @@ StdGlobalInterfaceTable_RegisterInterfaceInGlobal(
|
|||
IStream_Seek(stream, zero, STREAM_SEEK_SET, NULL);
|
||||
|
||||
entry = HeapAlloc(GetProcessHeap(), 0, sizeof(StdGITEntry));
|
||||
if (entry == NULL) return E_OUTOFMEMORY;
|
||||
if (!entry)
|
||||
{
|
||||
CoReleaseMarshalData(stream);
|
||||
IStream_Release(stream);
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
|
||||
EnterCriticalSection(&git_section);
|
||||
|
||||
|
|
Loading…
Reference in a new issue