shell32: Fix a memory leak (Valgrind).

Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2019-11-02 12:02:27 +01:00 committed by Alexandre Julliard
parent 21c832da63
commit 6796cd8ac4

View file

@ -655,6 +655,8 @@ static HRESULT ShellView_FillList(IShellViewImpl *This)
{
if (IncludeObject(This, pidl) == S_OK)
shellview_add_item(This, pidl);
else
ILFree(pidl);
}
SendMessageW(This->hWndList, LVM_SORTITEMS, (WPARAM)This->pSFParent, (LPARAM)ShellView_CompareItems);