On 11/18/2017 09:18 PM, Fabian Maurer wrote:
- stat = GdipGetFontCollectionFamilyList(fonts, num_families, &family, &num_families);
- ok(stat == Ok, "GdipGetFontCollectionFamilyList failed: %d\n", stat);
- stat = GdipGetFamilyName(family, family_name, LANG_NEUTRAL);
- ok(stat == Ok, "GdipGetFamilyName failed: %d\n", stat);
- stat = GdipCreateFont(family, 256.0, FontStyleRegular, UnitPixel, &font);
- ok(stat == Ok, "GdipCreateFont failed: %d\n", stat);
- /* Cleanup */
- stat = GdipDeleteFont(font);
- ok(stat == Ok, "GdipDeleteFont failed: %d\n", stat);
- stat = GdipDeletePrivateFontCollection(&fonts);
- ok(stat == Ok, "GdipDeletePrivateFontCollection failed: %d\n", stat);
- DELETE_FONTFILE(path);
"family" should also be released probably.