Skip to content
Snippets Groups Projects
Commit 3d5036e3 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard
Browse files

gdiplus: Fix a memory leak (Valgrind).

parent a77c7626
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment