shell32/tests: Fix a leak in the ebrowser tests (Valgrind).

This commit is contained in:
David Hedberg 2011-01-16 10:57:01 +01:00 committed by Alexandre Julliard
parent 8cf1200fff
commit 9fd1e23602
1 changed files with 4 additions and 1 deletions

View File

@ -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 */