Nikolay Sivov : shell32/tests: Fixed some leaks (Valgrind).

Alexandre Julliard julliard at winehq.org
Mon Oct 2 15:46:23 CDT 2017


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Oct  2 21:46:35 2017 +0300

shell32/tests: Fixed some leaks (Valgrind).

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/shell32/tests/shelldispatch.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/shell32/tests/shelldispatch.c b/dlls/shell32/tests/shelldispatch.c
index 3735c9b..9825c3a 100644
--- a/dlls/shell32/tests/shelldispatch.c
+++ b/dlls/shell32/tests/shelldispatch.c
@@ -638,6 +638,8 @@ static void test_items(void)
         SysFreeString(name);
         SysFreeString(bstr);
 
+        FolderItem_Release(item);
+
         item = NULL;
         r = FolderItems_Item(items, str_index, &item);
         ok(r == S_OK, "file_defs[%d]: FolderItems::Item failed: %08x\n", i, r);
@@ -1403,6 +1405,7 @@ static void test_ShellExecute(void)
     ok(hr == S_OK, "ShellExecute failed: %08x\n", hr);
 
     SysFreeString(name);
+    IShellDispatch2_Release(sd);
 }
 
 START_TEST(shelldispatch)




More information about the wine-cvs mailing list