[SHELL32] -CMenuToolbarBase: Remove all buttons on destruction. CORE-13194

It seems that TBN_DELETINGBUTTON isn't called when the toolbar gets destroyed so the only way to avoid leaking the data is emptying it ourselves.
This commit is contained in:
Giannis Adamopoulos 2018-02-23 12:27:48 +02:00
parent 5f52a61e7d
commit 5b38fed776

View file

@ -287,6 +287,8 @@ CMenuToolbarBase::CMenuToolbarBase(CMenuBand *menuBand, BOOL usePager) :
CMenuToolbarBase::~CMenuToolbarBase()
{
ClearToolbar();
if (m_hWnd)
DestroyWindow();