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