Andrew Talbot : gdiplus: Fix some memory leaks.
Alexandre Julliard
julliard at winehq.org
Thu Sep 27 14:48:50 CDT 2007
Module: wine
Branch: master
Commit: dfac0635f65c07e4f45106395aacbcce8819073f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=dfac0635f65c07e4f45106395aacbcce8819073f
Author: Andrew Talbot <andrew.talbot at 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;
More information about the wine-cvs
mailing list