mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08: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:
@@ -287,6 +287,8 @@ CMenuToolbarBase::CMenuToolbarBase(CMenuBand *menuBand, BOOL usePager) :
|
||||
|
||||
CMenuToolbarBase::~CMenuToolbarBase()
|
||||
{
|
||||
ClearToolbar();
|
||||
|
||||
if (m_hWnd)
|
||||
DestroyWindow();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user