Nikolay Sivov : shell32/tests: Fix a PIDL leak in tests (Valgrind).

Alexandre Julliard julliard at winehq.org
Wed Jan 19 11:46:10 CST 2011


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

Author: Nikolay Sivov <nsivov at 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");




More information about the wine-cvs mailing list