Module: wine Branch: master Commit: 9fd1e23602c489134de9643001cd526f214f4a70 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9fd1e23602c489134de9643001...
Author: David Hedberg david.hedberg@gmail.com Date: Sun Jan 16 10:57:01 2011 +0100
shell32/tests: Fix a leak in the ebrowser tests (Valgrind).
---
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 */