[PATCH v2] explorer: Don't leak PIDL
Andrew Eikum <[email protected]> Thu, 9 Nov 2017 08:43:10 -0600
| Newsgroups | gmane.comp.emulators.wine.patches |
|---|---|
| Message-ID | <[email protected]> |
Signed-off-by: Andrew Eikum <[email protected]> --- v2: Huw pointed out ILFree is used consistently in this file. programs/explorer/explorer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/explorer/explorer.c b/programs/explorer/explorer.c index cc3244d00e..5144e74498 100644 --- a/programs/explorer/explorer.c +++ b/programs/explorer/explorer.c @@ -609,6 +609,7 @@ static IShellFolder* get_starting_shell_folder(parameters_struct* params) hres = IShellFolder_BindToObject(desktop,root_pidl,NULL, &IID_IShellFolder, (void**)&folder); + ILFree(root_pidl); if(FAILED(hres)) { return desktop; -- 2.15.0