From 3d5036e31769b0400d6cea08460e7fdb1cbf3556 Mon Sep 17 00:00:00 2001 From: Sven Baars Date: Wed, 19 Dec 2018 21:10:15 +0100 Subject: [PATCH] gdiplus: Fix a memory leak (Valgrind). Signed-off-by: Sven Baars Signed-off-by: Alexandre Julliard --- dlls/gdiplus/font.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c index 729592b982e..5e6aa5430f0 100644 --- a/dlls/gdiplus/font.c +++ b/dlls/gdiplus/font.c @@ -1125,6 +1125,7 @@ GpStatus WINGDIPAPI GdipDeletePrivateFontCollection(GpFontCollection **fontColle return InvalidParameter; for (i = 0; i < (*fontCollection)->count; i++) heap_free((*fontCollection)->FontFamilies[i]); + heap_free((*fontCollection)->FontFamilies); heap_free(*fontCollection); return Ok;