diff --git a/src/msw/textentry.cpp b/src/msw/textentry.cpp index e3afd0eae0..65fbc3031f 100644 --- a/src/msw/textentry.cpp +++ b/src/msw/textentry.cpp @@ -140,6 +140,13 @@ public: } private: + // dtor doesn't have to be virtual as we're only ever deleted from our own + // Release() and are not meant to be derived form anyhow, but making it + // virtual silences gcc warnings; making it private makes it impossible to + // (mistakenly) delete us directly instead of calling Release() + virtual ~wxIEnumString() { } + + const wxArrayString m_strings; unsigned m_index;