Stefan Dösinger : ddraw: Fix a leak in a test.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Feb 19 07:02:19 CST 2007
Module: wine
Branch: master
Commit: 68e7ed2c90f0bd981ef9aaae5b4396e8537f0ff7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=68e7ed2c90f0bd981ef9aaae5b4396e8537f0ff7
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Fri Feb 16 19:08:13 2007 +0100
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.
More information about the wine-cvs
mailing list