diff --git a/include/wx/propgrid/property.h b/include/wx/propgrid/property.h index 4d3b6f002f..46591191d6 100644 --- a/include/wx/propgrid/property.h +++ b/include/wx/propgrid/property.h @@ -677,6 +677,7 @@ public: private: wxVector m_items; +protected: virtual ~wxPGChoicesData(); }; diff --git a/interface/wx/propgrid/property.h b/interface/wx/propgrid/property.h index 1614173cf0..b281e43175 100644 --- a/interface/wx/propgrid/property.h +++ b/interface/wx/propgrid/property.h @@ -2480,6 +2480,9 @@ public: const wxPGChoiceEntry& Item( unsigned int i ) const; wxPGChoiceEntry& Item( unsigned int i ); + +protected: + virtual ~wxPGChoicesData(); }; #define wxPGChoicesEmptyData ((wxPGChoicesData*)NULL)