text control to be accessed while being deleted
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33654
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
public:
// creating the control
wxDatePickerCtrlGeneric() { Init(); }
+ ~wxDatePickerCtrlGeneric() ;
wxDatePickerCtrlGeneric(wxWindow *parent,
wxWindowID id,
const wxDateTime& date = wxDefaultDateTime,
m_ignoreDrop = false;
}
+wxDatePickerCtrlGeneric::~wxDatePickerCtrlGeneric()
+{
+ m_popup = NULL;
+ m_txt = NULL;
+ m_cal = NULL;
+ m_btn = NULL;
+}
bool wxDatePickerCtrlGeneric::Destroy()
{
void wxDatePickerCtrlGeneric::OnKillFocus(wxFocusEvent &ev)
{
+ if (!m_txt)
+ return;
+
ev.Skip();
wxDateTime dt;