dwrite/tests: Fix couple of leaks when creating test font instance.

This commit is contained in:
Nikolay Sivov 2015-02-04 15:35:18 +03:00 committed by Alexandre Julliard
parent afd1911cd7
commit 34a5cd2086
1 changed files with 2 additions and 0 deletions

View File

@ -2099,6 +2099,8 @@ static IDWriteFont *get_tahoma_instance(IDWriteFactory *factory, DWRITE_FONT_STY
DWRITE_FONT_STRETCH_NORMAL, style, &font);
ok(hr == S_OK, "got 0x%08x\n", hr);
IDWriteFontFamily_Release(family);
IDWriteFontCollection_Release(collection);
return font;
}