Module: wine Branch: master Commit: cc1dc2e69304f7cef00099cd97d9a53e74cbd4ab URL: http://source.winehq.org/git/wine.git/?a=commit;h=cc1dc2e69304f7cef00099cd97...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Tue Jan 18 22:37:14 2011 +0300
shell32/tests: Fix a PIDL leak in tests (Valgrind).
---
dlls/shell32/tests/shelllink.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/shell32/tests/shelllink.c b/dlls/shell32/tests/shelllink.c index f213221..f754efd 100644 --- a/dlls/shell32/tests/shelllink.c +++ b/dlls/shell32/tests/shelllink.c @@ -911,6 +911,7 @@ static void test_GetIconLocation(void) pidl = path_to_pidl(mypath); r = IShellLinkA_SetIDList(sl, pidl); ok(r == S_OK, "SetPath failed (0x%08x)\n", r); + pILFree(pidl);
i = 0xdeadbeef; strcpy(buffer, "garbage");