Set m_cocoaDataSource = NULL in default constructor so subclasses that

don't call our Create function (e.g. wxCheckListBox) don't crash on destruction.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2005-06-18 03:39:46 +00:00
parent f166217789
commit 070b7b8510

View File

@@ -28,7 +28,7 @@ class WXDLLEXPORT wxListBox: public wxListBoxBase, protected wxCocoaNSTableView
// initialization // initialization
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
public: public:
wxListBox() { m_cocoaItems = NULL; } wxListBox() { m_cocoaItems = NULL; m_cocoaDataSource = NULL; }
wxListBox(wxWindow *parent, wxWindowID winid, wxListBox(wxWindow *parent, wxWindowID winid,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,