From b943ea64cf625b6d1abad033376b5cabf4394c23 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Wed, 27 May 2009 17:28:59 +0000 Subject: [PATCH] Mikhail Denisenko - Free subentries in Entry destructor. Fixes QuickLaunch entries leak. See issue #2012 for more details. svn path=/trunk/; revision=41144 --- reactos/base/shell/explorer/shell/entries.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/base/shell/explorer/shell/entries.cpp b/reactos/base/shell/explorer/shell/entries.cpp index d4646fde064..0ceb70a6507 100644 --- a/reactos/base/shell/explorer/shell/entries.cpp +++ b/reactos/base/shell/explorer/shell/entries.cpp @@ -96,6 +96,8 @@ Entry::Entry(const Entry& other) // free a directory entry Entry::~Entry() { + free_subentries(); + if (_icon_id > ICID_NONE) g_Globals._icon_cache.free_icon(_icon_id);