dwrite: Fixed memory leak on error (Coverity).

This commit is contained in:
Marcus Meissner 2014-11-02 11:10:22 +01:00 committed by Alexandre Julliard
parent 00a6a1ac2f
commit a423cbdd5e
1 changed files with 3 additions and 1 deletions

View File

@ -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;