From: David Elliott Date: Sat, 18 Jun 2005 03:39:46 +0000 (+0000) Subject: Set m_cocoaDataSource = NULL in default constructor so subclasses that X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/070b7b851031a14e254f8e0239a47ec3a13b3078 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 --- diff --git a/include/wx/cocoa/listbox.h b/include/wx/cocoa/listbox.h index 479362e40e..6ada4abc57 100644 --- a/include/wx/cocoa/listbox.h +++ b/include/wx/cocoa/listbox.h @@ -28,7 +28,7 @@ class WXDLLEXPORT wxListBox: public wxListBoxBase, protected wxCocoaNSTableView // initialization // ------------------------------------------------------------------------ public: - wxListBox() { m_cocoaItems = NULL; } + wxListBox() { m_cocoaItems = NULL; m_cocoaDataSource = NULL; } wxListBox(wxWindow *parent, wxWindowID winid, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,