Nikolay Sivov : gdiplus: Free memory after some Graphics tests.

Alexandre Julliard julliard at winehq.org
Mon Aug 25 06:20:28 CDT 2008


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

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Sun Aug 24 14:44:56 2008 +0400

gdiplus: Free memory after some Graphics tests.

---

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

diff --git a/dlls/gdiplus/tests/graphics.c b/dlls/gdiplus/tests/graphics.c
index 168eae3..26cce08 100644
--- a/dlls/gdiplus/tests/graphics.c
+++ b/dlls/gdiplus/tests/graphics.c
@@ -277,6 +277,8 @@ static void test_GdipDrawArc(void)
     expect(Ok, status);
 
     GdipDeletePen(pen);
+    GdipDeleteGraphics(graphics);
+
     ReleaseDC(0, hdc);
 }
 
@@ -321,6 +323,8 @@ static void test_GdipDrawArcI(void)
     expect(Ok, status);
 
     GdipDeletePen(pen);
+    GdipDeleteGraphics(graphics);
+
     ReleaseDC(0, hdc);
 }
 
@@ -359,6 +363,8 @@ static void test_GdipDrawBezierI(void)
     expect(Ok, status);
 
     GdipDeletePen(pen);
+    GdipDeleteGraphics(graphics);
+
     ReleaseDC(0, hdc);
 }
 
@@ -397,6 +403,8 @@ static void test_GdipDrawLineI(void)
     expect(Ok, status);
 
     GdipDeletePen(pen);
+    GdipDeleteGraphics(graphics);
+
     ReleaseDC(0, hdc);
 }
 
@@ -449,6 +457,8 @@ static void test_GdipDrawLinesI(void)
 
     GdipFree(ptf);
     GdipDeletePen(pen);
+    GdipDeleteGraphics(graphics);
+
     ReleaseDC(0, hdc);
 }
 




More information about the wine-cvs mailing list