oleacc: Free the mapping on error (Coverity).
This commit is contained in:
parent
2bfb3ef624
commit
9ad8aff7e1
|
@ -219,8 +219,10 @@ HRESULT WINAPI ObjectFromLresult( LRESULT result, REFIID riid, WPARAM wParam, vo
|
|||
return E_FAIL;
|
||||
|
||||
data = GlobalAlloc(GMEM_FIXED, size);
|
||||
if(!data)
|
||||
if(!data) {
|
||||
UnmapViewOfFile(view);
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
memcpy(data, view, size);
|
||||
UnmapViewOfFile(view);
|
||||
|
||||
|
|
Loading…
Reference in New Issue