From 34a5cd20865aa3149aa8c4d2e0ebc82419c7b8ba Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 4 Feb 2015 15:35:18 +0300 Subject: [PATCH] dwrite/tests: Fix couple of leaks when creating test font instance. --- dlls/dwrite/tests/font.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/dwrite/tests/font.c b/dlls/dwrite/tests/font.c index 6bea28880e1..915fb98412e 100644 --- a/dlls/dwrite/tests/font.c +++ b/dlls/dwrite/tests/font.c @@ -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; }