Sven Baars : shell32/tests: Fix some memory leaks (Valgrind).

Alexandre Julliard julliard at winehq.org
Mon Jan 14 16:21:49 CST 2019


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

Author: Sven Baars <sven.wine at gmail.com>
Date:   Mon Jan 14 13:45:54 2019 +0100

shell32/tests: Fix some memory leaks (Valgrind).

Signed-off-by: Sven Baars <sven.wine at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/shell32/tests/autocomplete.c b/dlls/shell32/tests/autocomplete.c
index 4f81214..4ef124c 100644
--- a/dlls/shell32/tests/autocomplete.c
+++ b/dlls/shell32/tests/autocomplete.c
@@ -786,7 +786,10 @@ static void test_custom_source(void)
     SendMessageW(hwnd_edit, WM_CHAR, 'x', 1);
     dispatch_messages();
     ok(obj->num_resets == 1, "Expected 1 reset, got %u\n", obj->num_resets);
+
     IAutoCompleteDropDown_Release(acdropdown);
+    IAutoComplete2_Release(autocomplete);
+    IUnknown_Release(enumerator);
 
     test_prefix_filtering(hwnd_edit);
 




More information about the wine-cvs mailing list