]> 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 8ff7ab4cd11006ada8543f7999c4db9819c22387..308faa01e1c4c99051149335004b2d82c9068d2f 100644 (file)
 #pragma implementation "listbox.h"
 #endif
 
-#ifdef __VMS
-#define gtk_scrolled_window_add_with_viewport gtk_scrolled_window_add_with_vi
-#define gtk_container_set_focus_vadjustment gtk_container_set_focus_vadjust
-#define gtk_scrolled_window_get_vadjustment gtk_scrolled_window_get_vadjust
-#endif
-
 #include "wx/listbox.h"
 
 #if wxUSE_LISTBOX
@@ -367,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)