explorer: Don't leak PIDL.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Andrew Eikum 2017-11-09 08:43:10 -06:00 committed by Alexandre Julliard
parent 88cc2d114a
commit a484bf495e
1 changed files with 1 additions and 0 deletions

View File

@ -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;