delete controls which are part of the calendar (even if they're siblings to it and not its children) when the calender itself is deleted
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9576de5c8b
commit
2c9fc05a46
@ -256,6 +256,14 @@ wxCalendarCtrl::~wxCalendarCtrl()
|
||||
{
|
||||
delete m_attrs[n];
|
||||
}
|
||||
|
||||
if ( !HasFlag(wxCAL_SEQUENTIAL_MONTH_SELECTION) )
|
||||
{
|
||||
delete m_comboMonth;
|
||||
delete m_staticMonth;
|
||||
delete m_spinYear;
|
||||
delete m_staticYear;
|
||||
}
|
||||
}
|
||||
|
||||
void wxCalendarCtrl::SetWindowStyleFlag(long style)
|
||||
|
Loading…
Reference in New Issue
Block a user