Nikolay Sivov : comctl32/tests: Don't forget to free array after tests.

Alexandre Julliard julliard at winehq.org
Mon Dec 7 10:26:14 CST 2009


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

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Sat Dec  5 21:21:04 2009 +0300

comctl32/tests: Don't forget to free array after tests.

---

 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);




More information about the wine-cvs mailing list