[PATCH] gdiplus/tests: Fix some memory leaks (Valgrind).
Sven Baars
sven.wine at gmail.com
Wed Dec 19 14:10:16 CST 2018
Signed-off-by: Sven Baars <sven.wine at gmail.com>
---
dlls/gdiplus/tests/font.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c
index 0a3a3bef79..367aae8192 100644
--- a/dlls/gdiplus/tests/font.c
+++ b/dlls/gdiplus/tests/font.c
@@ -109,6 +109,9 @@ static void test_long_name(void)
stat = GdipDeleteFont(font);
ok(stat == Ok, "GdipDeleteFont failed: %d\n", stat);
+ stat = GdipDeleteFontFamily(family);
+ ok(stat == Ok, "GdipDeleteFontFamily failed: %d\n", stat);
+
stat = GdipDeletePrivateFontCollection(&fonts);
ok(stat == Ok, "GdipDeletePrivateFontCollection failed: %d\n", stat);
@@ -1227,7 +1230,7 @@ static void test_GdipGetFontCollectionFamilyList(void)
ok(found == 1, "Unexpected list count %d.\n", found);
ok(family != NULL, "Expected family instance.\n");
- family = NULL;
+ family2 = NULL;
found = 0;
status = GdipGetFontCollectionFamilyList(collection, 1, &family2, &found);
ok(status == Ok, "Failed to get family list, status %d.\n", status);
--
2.17.1
More information about the wine-devel
mailing list