[1/6] gdiplus: free memory after some Graphics test

Nikolay Sivov bunglehead at gmail.com
Sat Aug 23 14:37:54 CDT 2008


Changelog:
    - Correct 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);
 }
 
-- 
1.4.4.4






More information about the wine-patches mailing list