Commit 9fd1e236 authored by David Hedberg's avatar David Hedberg Committed by Alexandre Julliard

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

parent 8cf1200f
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment