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:
parent
21c832da63
commit
6796cd8ac4
|
@ -655,6 +655,8 @@ static HRESULT ShellView_FillList(IShellViewImpl *This)
|
||||||
{
|
{
|
||||||
if (IncludeObject(This, pidl) == S_OK)
|
if (IncludeObject(This, pidl) == S_OK)
|
||||||
shellview_add_item(This, pidl);
|
shellview_add_item(This, pidl);
|
||||||
|
else
|
||||||
|
ILFree(pidl);
|
||||||
}
|
}
|
||||||
|
|
||||||
SendMessageW(This->hWndList, LVM_SORTITEMS, (WPARAM)This->pSFParent, (LPARAM)ShellView_CompareItems);
|
SendMessageW(This->hWndList, LVM_SORTITEMS, (WPARAM)This->pSFParent, (LPARAM)ShellView_CompareItems);
|
||||||
|
|
Loading…
Reference in New Issue