[PATCH 4/9] Don't forget to free array after tests
Nikolay Sivov
bunglehead at gmail.com
Sat Dec 5 12:21:04 CST 2009
---
dlls/comctl32/tests/dpa.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/tests/dpa.c b/dlls/comctl32/tests/dpa.c
index c9e91c2..5fb11e3 100644
--- a/dlls/comctl32/tests/dpa.c
+++ b/dlls/comctl32/tests/dpa.c
@@ -347,6 +347,8 @@ static void test_dpa(void)
pDPA_DeleteAllPtrs(dpa2);
rc=CheckDPA(dpa2, 0, &dw2);
ok(rc, "dw2=0x%x\n", dw2);
+
+ pDPA_Destroy(dpa);
pDPA_Destroy(dpa2);
pDPA_Destroy(dpa3);
}
@@ -623,8 +625,10 @@ static void test_DPA_LoadStream(void)
hRes = IStream_Seek(pStm, li, STREAM_SEEK_SET, NULL);
expect(S_OK, hRes);
+ dpa = NULL;
hRes = pDPA_LoadStream(&dpa, CB_Load, pStm, NULL);
expect(S_OK, hRes);
+ DPA_Destroy(dpa);
/* try with altered dwData2 field */
header.dwSize = sizeof(header);
--
1.5.6.5
--=-Va4M/VsMwFeViUqinsgP--
More information about the wine-patches
mailing list