Commit 6796cd8a authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

shell32: Fix a memory leak (Valgrind).

parent 21c832da
...@@ -655,6 +655,8 @@ static HRESULT ShellView_FillList(IShellViewImpl *This) ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment