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:
@@ -256,6 +256,14 @@ wxCalendarCtrl::~wxCalendarCtrl()
|
|||||||
{
|
{
|
||||||
delete m_attrs[n];
|
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)
|
void wxCalendarCtrl::SetWindowStyleFlag(long style)
|
||||||
|
Reference in New Issue
Block a user