Austin English : shell32/tests: fix a couple memory leaks (Valgrind).
Module: wine Branch: master Commit: 19fa0b32fddb8a64f8bf8b324c8e8131f3ed9640 URL: http://source.winehq.org/git/wine.git/?a=commit;h=19fa0b32fddb8a64f8bf8b324c... Author: Austin English <austinenglish(a)gmail.com> Date: Tue Jan 18 01:45:50 2011 -0800 shell32/tests: fix a couple memory leaks (Valgrind). --- dlls/shell32/tests/shlfolder.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) 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); } }
participants (1)
-
Alexandre Julliard