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);