Author: akhaldi
Date: Fri Oct 31 09:08:43 2014
New Revision: 65132
URL:
http://svn.reactos.org/svn/reactos?rev=65132&view=rev
Log:
[SHELL32]
* Plug a leak. CID 716474.
CORE-7975
Modified:
trunk/reactos/dll/win32/shell32/brsfolder.cpp
Modified: trunk/reactos/dll/win32/shell32/brsfolder.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/brsfolde…
==============================================================================
--- trunk/reactos/dll/win32/shell32/brsfolder.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/brsfolder.cpp [iso-8859-1] Fri Oct 31 09:08:43 2014
@@ -354,11 +354,11 @@
tvi.cChildren= pEnumIL ? 1 : 0;
tvi.mask |= TVIF_CHILDREN;
+ if (!GetName(lpsf, pidl, SHGDN_NORMAL, szBuff))
+ return NULL;
+
lptvid = (TV_ITEMDATA *)SHAlloc( sizeof(TV_ITEMDATA) );
if (!lptvid)
- return NULL;
-
- if (!GetName(lpsf, pidl, SHGDN_NORMAL, szBuff))
return NULL;
tvi.pszText = szBuff;