diff --git a/include/wx/propgrid/property.h b/include/wx/propgrid/property.h index bc61848413..ab1439d6af 100644 --- a/include/wx/propgrid/property.h +++ b/include/wx/propgrid/property.h @@ -803,6 +803,7 @@ public: private: wxVector m_items; +protected: virtual ~wxPGChoicesData(); }; diff --git a/interface/wx/propgrid/property.h b/interface/wx/propgrid/property.h index ec07698f45..64f6902261 100644 --- a/interface/wx/propgrid/property.h +++ b/interface/wx/propgrid/property.h @@ -2121,6 +2121,9 @@ public: const wxPGChoiceEntry& Item( unsigned int i ) const; wxPGChoiceEntry& Item( unsigned int i ); + +protected: + virtual ~wxPGChoicesData(); }; #define wxPGChoicesEmptyData ((wxPGChoicesData*)NULL)