dwrite: Avoid leaking filemapping (Coverity).
This commit is contained in:
parent
1994140f3d
commit
6ea025fc7f
|
@ -2228,8 +2228,10 @@ static HRESULT WINAPI localfontfileloader_CreateStreamFromKey(IDWriteLocalFontFi
|
|||
CloseHandle(mapping);
|
||||
|
||||
stream = heap_alloc(sizeof(*stream));
|
||||
if (!stream)
|
||||
if (!stream) {
|
||||
UnmapViewOfFile(file_ptr);
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
|
||||
stream->key = heap_alloc(key_size);
|
||||
if (!stream->key) {
|
||||
|
|
Loading…
Reference in New Issue