[PATCH 1/5] usp10: Fix a memory leak in GDEF_UpdateGlyphProps().
Henri Verbeet
hverbeet at codeweavers.com
Tue Jun 7 12:44:45 CDT 2011
---
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)
--
1.7.3.4
More information about the wine-patches
mailing list