From dfac0635f65c07e4f45106395aacbcce8819073f Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Tue, 25 Sep 2007 20:52:58 +0100 Subject: [PATCH] gdiplus: Fix some memory leaks. --- dlls/gdiplus/graphics.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 3072b5017a0..c69c0e55be0 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -1418,6 +1418,7 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string break; } + GdipFree(stringdup); DeleteObject(rgn); DeleteObject(gdifont); @@ -1827,6 +1828,7 @@ GpStatus WINGDIPAPI GdipMeasureString(GpGraphics *graphics, bounds->Width = (REAL)max_width; bounds->Height = (REAL) min(height, nheight); + GdipFree(stringdup); DeleteObject(SelectObject(graphics->hdc, oldfont)); return Ok; -- 2.11.4.GIT