Evan Stade : gdiplus: Fix memory leak.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jul 26 06:37:26 CDT 2007


Module: wine
Branch: master
Commit: f52adfd0dea44dcdea0e87b624f9fdf7970d889c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f52adfd0dea44dcdea0e87b624f9fdf7970d889c

Author: Evan Stade <estade at gmail.com>
Date:   Wed Jul 25 19:15:20 2007 -0700

gdiplus: Fix memory leak.

---

 dlls/gdiplus/graphics.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index f53ea4c..3836476 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -154,6 +154,7 @@ static void transform_and_round_points(GpGraphics *graphics, POINT *pti,
     GdipCloneMatrix(graphics->worldtrans, &matrix);
     GdipScaleMatrix(matrix, unitscale, unitscale, MatrixOrderAppend);
     GdipTransformMatrixPoints(matrix, ptf, count);
+    GdipDeleteMatrix(matrix);
 
     for(i = 0; i < count; i++){
         pti[i].x = roundr(ptf[i].X);




More information about the wine-cvs mailing list