Commit a423cbdd authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

dwrite: Fixed memory leak on error (Coverity).

parent 00a6a1ac
......@@ -1476,8 +1476,10 @@ HRESULT create_font_collection(IDWriteFactory* factory, IDWriteFontFileEnumerato
init_font_data(factory, file, i, face_type, font_data);
hr = get_filestream_from_file(file, &stream);
if (FAILED(hr))
if (FAILED(hr)) {
heap_free (font_data);
return hr;
}
/* get family name from font file */
name_table = NULL;
......
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