X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7516ed26c9749018135c24afdd0576e4366c92e6..a77ec46ddce189e18a3c93bcc0eb82e2a82a19d9:/src/generic/calctrl.cpp diff --git a/src/generic/calctrl.cpp b/src/generic/calctrl.cpp index 14c60e5267..9c70985528 100644 --- a/src/generic/calctrl.cpp +++ b/src/generic/calctrl.cpp @@ -253,6 +253,18 @@ wxCalendarCtrl::~wxCalendarCtrl() // forward wxWin functions to subcontrols // ---------------------------------------------------------------------------- +bool wxCalendarCtrl::Destroy() +{ + if( m_staticYear ) m_staticYear->Destroy(); + if( m_spinYear ) m_spinYear->Destroy(); + if( m_comboMonth ) m_comboMonth->Destroy(); + if( m_staticMonth ) m_staticMonth->Destroy(); + + m_staticYear = 0; m_spinYear = 0; m_comboMonth = 0; m_staticMonth = 0; + + return wxControl::Destroy(); +} + bool wxCalendarCtrl::Show(bool show) { if ( !wxControl::Show(show) )