dwrite: Fix file object leak.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f5b6563bec
commit
d5d863597d
|
@ -2408,6 +2408,7 @@ static HRESULT WINAPI dwritefontcollection_GetFontFromFontFace(IDWriteFontCollec
|
|||
if (found_font)
|
||||
break;
|
||||
}
|
||||
IDWriteFontFile_Release(file);
|
||||
|
||||
if (!found_font)
|
||||
return DWRITE_E_NOFONT;
|
||||
|
|
Loading…
Reference in New Issue