mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:02:56 +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()
|
CMenuToolbarBase::~CMenuToolbarBase()
|
||||||
{
|
{
|
||||||
|
ClearToolbar();
|
||||||
|
|
||||||
if (m_hWnd)
|
if (m_hWnd)
|
||||||
DestroyWindow();
|
DestroyWindow();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue