]> git.saurik.com Git - wxWidgets.git/commitdiff
Set m_cocoaDataSource = NULL in default constructor so subclasses that
authorDavid Elliott <dfe@tgwbd.org>
Sat, 18 Jun 2005 03:39:46 +0000 (03:39 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Sat, 18 Jun 2005 03:39:46 +0000 (03:39 +0000)
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

include/wx/cocoa/listbox.h

index 479362e40e206d45528d85b62688bcedbee33b8d..6ada4abc57225398d14c897fec7c660efb74a072 100644 (file)
@@ -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,