[PATCH] shell32/tests: Fix some memory leaks (Valgrind).
Signed-off-by: Sven Baars <sven.wine(a)gmail.com> --- 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 4f81214b02..4ef124c9d2 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); -- 2.17.1
Signed-off-by: Gabriel Ivăncescu <gabrielopcode(a)gmail.com> Thanks. These leaks were there for a very long time (original code had them). I don't know if my sign-off matters but here it is for completeness. :-)
participants (2)
-
Gabriel Ivăncescu -
Sven Baars