Module: wine Branch: master Commit: 90cf60c796a7102ad0bfcd5479535c6ac3342583 URL: http://source.winehq.org/git/wine.git/?a=commit;h=90cf60c796a7102ad0bfcd5479... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Jun 7 19:44:45 2011 +0200 usp10: Fix a memory leak in GDEF_UpdateGlyphProps(). --- dlls/usp10/shape.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/usp10/shape.c b/dlls/usp10/shape.c index d4f7d17..66904da 100644 --- a/dlls/usp10/shape.c +++ b/dlls/usp10/shape.c @@ -1322,6 +1322,8 @@ static void GDEF_UpdateGlyphProps(HDC hdc, const WORD *pwGlyphs, const WORD cGly pGlyphProp[i].sva.fZeroWidth = 0; } } + + HeapFree(GetProcessHeap(), 0, header); } static void UpdateClustersFromGlyphProp(const int cGlyphs, const int cChars, WORD* pwLogClust, SCRIPT_GLYPHPROP *pGlyphProp)