]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/listbox.cpp
attempts at making modal dialogs without parent work - failed
[wxWidgets.git] / src / gtk / listbox.cpp
index c140ad2ddf39f34a32a83a19803482f8d573bbed..308faa01e1c4c99051149335004b2d82c9068d2f 100644 (file)
@@ -26,7 +26,7 @@
 #include "wx/tooltip.h"
 #endif
 
-#include <gdk/gdk.h>
+# include <gdk/gdk.h>
 #include <gtk/gtk.h>
 #include <gdk/gdkkeysyms.h>
 
@@ -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)