[SHELL32]

- Avoid leaking the list items on destruction of CEnumIDListBase
CORE-13194

svn path=/trunk/; revision=74498
This commit is contained in:
Thomas Faber 2017-05-08 10:59:27 +00:00
parent 0db63068ac
commit 8600730e9c
2 changed files with 6 additions and 5 deletions

View file

@ -22,15 +22,16 @@
WINE_DEFAULT_DEBUG_CHANNEL(shell);
CEnumIDListBase::CEnumIDListBase()
CEnumIDListBase::CEnumIDListBase() :
mpFirst(NULL),
mpLast(NULL),
mpCurrent(NULL)
{
mpFirst = NULL;
mpLast = NULL;
mpCurrent = NULL;
}
CEnumIDListBase::~CEnumIDListBase()
{
DeleteList();
}
/**************************************************************************

View file

@ -33,7 +33,7 @@ private:
ENUMLIST *mpCurrent;
public:
CEnumIDListBase();
~CEnumIDListBase();
virtual ~CEnumIDListBase();
BOOL AddToEnumList(LPITEMIDLIST pidl);
BOOL DeleteList();
BOOL HasItemWithCLSID(LPITEMIDLIST pidl);