dwrite/tests: Fix couple of leaks when creating test font instance.
This commit is contained in:
parent
afd1911cd7
commit
34a5cd2086
|
@ -2099,6 +2099,8 @@ static IDWriteFont *get_tahoma_instance(IDWriteFactory *factory, DWRITE_FONT_STY
|
||||||
DWRITE_FONT_STRETCH_NORMAL, style, &font);
|
DWRITE_FONT_STRETCH_NORMAL, style, &font);
|
||||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||||
|
|
||||||
|
IDWriteFontFamily_Release(family);
|
||||||
|
IDWriteFontCollection_Release(collection);
|
||||||
return font;
|
return font;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue