X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ac8ae254b4084cf7b6dda520cf1b45b8e7c4d513..3cc487d140f11e26a9c4ae35ba87cc22684da65a:/src/gtk/listbox.cpp?ds=sidebyside diff --git a/src/gtk/listbox.cpp b/src/gtk/listbox.cpp index c140ad2ddf..308faa01e1 100644 --- a/src/gtk/listbox.cpp +++ b/src/gtk/listbox.cpp @@ -26,7 +26,7 @@ #include "wx/tooltip.h" #endif -#include +# include #include #include @@ -361,6 +361,8 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id, wxListBox::~wxListBox() { Clear(); + if (m_strings) + delete m_strings; } void wxListBox::DoInsertItems(const wxArrayString& items, int pos)