shell32/tests: fix a couple memory leaks (Valgrind)
Austin English
austinenglish at gmail.com
Tue Jan 18 03:45:50 CST 2011
--
-Austin
-------------- next part --------------
diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c
index 8701b4d..f2a1424 100644
--- a/dlls/shell32/tests/shlfolder.c
+++ b/dlls/shell32/tests/shlfolder.c
@@ -4434,6 +4434,9 @@ static void test_SHChangeNotify(void)
SHChangeNotify(exp_data->signal, SHCNF_PATHW | SHCNF_FLUSH, path1, path2);
do_events();
ok(exp_data->missing_events == 0, "%s: Expected wndproc to be called\n", exp_data->id);
+
+ HeapFree(GetProcessHeap(), 0, path1);
+ HeapFree(GetProcessHeap(), 0, path2);
}
}
More information about the wine-patches
mailing list