Module: wine Branch: oldstable Commit: bf85c2e70ae51d583d1b61ff04e804742114b5e9 URL: https://source.winehq.org/git/wine.git/?a=commit;h=bf85c2e70ae51d583d1b61ff0...
Author: Sven Baars sven.wine@gmail.com Date: Wed Dec 19 21:10:15 2018 +0100
gdiplus: Fix a memory leak (Valgrind).
Signed-off-by: Sven Baars sven.wine@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit 3d5036e31769b0400d6cea08460e7fdb1cbf3556) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
dlls/gdiplus/font.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c index f99b026..fb80f6f 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;