Huw Davies : shdocvw: Fix a memory leak in the tests.
Alexandre Julliard
julliard at winehq.org
Mon Dec 14 09:51:11 CST 2009
Module: wine
Branch: master
Commit: 53ee807a3b906d9035c4e2e87e98f01e7719b4b8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=53ee807a3b906d9035c4e2e87e98f01e7719b4b8
Author: Huw Davies <huw at codeweavers.com>
Date: Sat Dec 12 12:19:05 2009 +0000
shdocvw: Fix a memory leak in the tests.
Found by Valgrind.
---
dlls/shdocvw/tests/shortcut.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/shdocvw/tests/shortcut.c b/dlls/shdocvw/tests/shortcut.c
index 5a740dc..f38ae2b 100644
--- a/dlls/shdocvw/tests/shortcut.c
+++ b/dlls/shdocvw/tests/shortcut.c
@@ -216,9 +216,10 @@ static void test_ShortcutFolder(void) {
ok (pidlCurFolder->mkid.cb == 20 && ((LPSHITEMID)((BYTE*)pidlCurFolder+20))->cb == 0 &&
IsEqualCLSID(&CLSID_WineTest, (REFCLSID)((LPBYTE)pidlCurFolder+4)),
"GetCurFolder returned unexpected pidl!\n");
-
+
+ ILFree(pidlCurFolder);
IPersistFolder3_Release(pWineTestPersistFolder);
-
+
cleanup:
unregister_keys(HKEY_CLASSES_ROOT, HKEY_CLASSES_ROOT_keys, 1);
}
More information about the wine-cvs
mailing list