[PATCH] shell32/tests: Fixed some leaks (Valgrind)
Nikolay Sivov
nsivov at codeweavers.com
Mon Oct 2 13:46:35 CDT 2017
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
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 3735c9b47f..9825c3a4e9 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)
--
2.14.2
More information about the wine-patches
mailing list