Module: wine Branch: master Commit: 6796cd8ac4a3a03d7af3dd2139c12c53b984a089 URL: https://source.winehq.org/git/wine.git/?a=commit;h=6796cd8ac4a3a03d7af3dd213...
Author: Sven Baars sven.wine@gmail.com Date: Sat Nov 2 12:02:27 2019 +0100
shell32: Fix a memory leak (Valgrind).
Signed-off-by: Sven Baars sven.wine@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/shell32/shlview.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index c0c027fbd3..bcb9466315 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -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);