[PATCH] gdiplus: Fix a memory leak (Valgrind).

Sven Baars sven.wine at gmail.com
Wed Dec 19 14:10:15 CST 2018


Signed-off-by: Sven Baars <sven.wine at gmail.com>
---
 dlls/gdiplus/font.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c
index 729592b982..5e6aa5430f 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;
-- 
2.17.1




More information about the wine-devel mailing list