mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +00:00
[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:
parent
5f52a61e7d
commit
5b38fed776
1 changed files with 2 additions and 0 deletions
|
@ -287,6 +287,8 @@ CMenuToolbarBase::CMenuToolbarBase(CMenuBand *menuBand, BOOL usePager) :
|
|||
|
||||
CMenuToolbarBase::~CMenuToolbarBase()
|
||||
{
|
||||
ClearToolbar();
|
||||
|
||||
if (m_hWnd)
|
||||
DestroyWindow();
|
||||
|
||||
|
|
Loading…
Reference in a new issue