[5/10] DDraw: Fix a leak in a test

Stefan Dösinger stefan at codeweavers.com
Fri Feb 16 12:08:13 CST 2007


-------------- next part --------------
From ab2248000469aa5c6459fb5ef44099aa0482a3d8 Mon Sep 17 00:00:00 2001
From: Stefan Doesinger <stefan at codeweavers.com>
Date: Tue, 13 Feb 2007 16:19:46 +0100
Subject: [PATCH] DDraw: Fix a leak in a test

---
 dlls/ddraw/tests/dsurface.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/ddraw/tests/dsurface.c b/dlls/ddraw/tests/dsurface.c
index 5948f3e..5e7f649 100644
--- a/dlls/ddraw/tests/dsurface.c
+++ b/dlls/ddraw/tests/dsurface.c
@@ -107,6 +107,9 @@ static void MipMapCreationTest(void)
     ok(U2(ddsd).dwMipMapCount == 1, "Incorrect mipmap count: %d.\n",
         U2(ddsd).dwMipMapCount);
 
+    /* Destroy the surface. */
+    IDirectDrawSurface_Release(lpDDSMipMapTest);
+
 
     /* Third mipmap creation test: create a surface with DDSCAPS_MIPMAP,
         DDSCAPS_COMPLEX and without DDSD_MIPMAPCOUNT.
@@ -133,6 +136,9 @@ static void MipMapCreationTest(void)
     ok(U2(ddsd).dwMipMapCount == 6, "Incorrect mipmap count: %d.\n",
         U2(ddsd).dwMipMapCount);
 
+    /* Destroy the surface. */
+    IDirectDrawSurface_Release(lpDDSMipMapTest);
+
 
     /* Fourth mipmap creation test: same as above with a different texture
        size.
-- 
1.4.4.3



More information about the wine-patches mailing list