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);
|
CloseHandle(mapping);
|
||||||
|
|
||||||
stream = heap_alloc(sizeof(*stream));
|
stream = heap_alloc(sizeof(*stream));
|
||||||
if (!stream)
|
if (!stream) {
|
||||||
|
UnmapViewOfFile(file_ptr);
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
|
}
|
||||||
|
|
||||||
stream->key = heap_alloc(key_size);
|
stream->key = heap_alloc(key_size);
|
||||||
if (!stream->key) {
|
if (!stream->key) {
|
||||||
|
|
Loading…
Reference in New Issue