[PATCH] shell32: Fix a memory leak (Valgrind).
Sven Baars
sven.wine at gmail.com
Sat Nov 2 06:02:27 CDT 2019
Signed-off-by: Sven Baars <sven.wine at gmail.com>
---
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);
--
2.17.1
More information about the wine-devel
mailing list