Module: wine Branch: master Commit: dfac0635f65c07e4f45106395aacbcce8819073f URL: http://source.winehq.org/git/wine.git/?a=commit;h=dfac0635f65c07e4f45106395a...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Tue Sep 25 20:52:58 2007 +0100
gdiplus: Fix some memory leaks.
---
dlls/gdiplus/graphics.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 3072b50..c69c0e5 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;