From 1fefb70fd03ab5d60aa2d7a3df7d27e0e69dc62b Mon Sep 17 00:00:00 2001 From: David Quintana Date: Fri, 15 Aug 2014 10:59:23 +0000 Subject: [PATCH] [SHELL32] * Remove an obsolete hack that would only cause leaks now. svn path=/branches/shell-experiments/; revision=63892 --- dll/win32/shell32/defcontextmenu.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dll/win32/shell32/defcontextmenu.cpp b/dll/win32/shell32/defcontextmenu.cpp index 6d8bda3c78a..41591e9de39 100644 --- a/dll/win32/shell32/defcontextmenu.cpp +++ b/dll/win32/shell32/defcontextmenu.cpp @@ -1684,21 +1684,13 @@ CDefFolderMenu_Create2( const HKEY *ahkeyClsKeys, IContextMenu **ppcm) { - // FIXME: This needs to be freed somewhere (like in the destructor of the context menu) - LPCITEMIDLIST *apidl2 = (LPCITEMIDLIST *) SHAlloc(sizeof(LPCITEMIDLIST) * cidl); - - for (int i = 0; i < (int)cidl; i++) - { - apidl2[i] = apidl[i]; - } - DEFCONTEXTMENU pdcm; pdcm.hwnd = hwnd; pdcm.pcmcb = NULL; pdcm.pidlFolder = pidlFolder; pdcm.psf = psf; pdcm.cidl = cidl; - pdcm.apidl = apidl2; + pdcm.apidl = apidl; pdcm.punkAssociationInfo = NULL; pdcm.cKeys = nKeys; pdcm.aKeys = ahkeyClsKeys;