shell32/tests: Fix a leak in the ebrowser tests (Valgrind).
David Hedberg
david.hedberg at gmail.com
Sun Jan 16 03:57:01 CST 2011
---
dlls/shell32/tests/ebrowser.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/shell32/tests/ebrowser.c b/dlls/shell32/tests/ebrowser.c
index 6d9dbb1..a8da1cc 100644
--- a/dlls/shell32/tests/ebrowser.c
+++ b/dlls/shell32/tests/ebrowser.c
@@ -94,8 +94,11 @@ static HRESULT ebrowser_initialize(IExplorerBrowser *peb)
static HRESULT ebrowser_browse_to_desktop(IExplorerBrowser *peb)
{
LPITEMIDLIST pidl_desktop;
+ HRESULT hr;
SHGetSpecialFolderLocation (hwnd, CSIDL_DESKTOP, &pidl_desktop);
- return IExplorerBrowser_BrowseToIDList(peb, pidl_desktop, 0);
+ hr = IExplorerBrowser_BrowseToIDList(peb, pidl_desktop, 0);
+ ILFree(pidl_desktop);
+ return hr;
}
/* Process some messages */
--
1.7.4.rc1
More information about the wine-patches
mailing list