diff --git a/test/api/test-directwrite.cc b/test/api/test-directwrite.cc index 2f4ed0a9f..72396f2b5 100644 --- a/test/api/test-directwrite.cc +++ b/test/api/test-directwrite.cc @@ -100,6 +100,8 @@ get_dwfontface (const wchar_t *family_name) hr = font->CreateFontFace (&dw_face); g_assert_true (SUCCEEDED (hr)); + font->Release (); + return dw_face; }