]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/combobox.cpp
added mingw32 host platform to configure.in, added WINVER define for windows
[wxWidgets.git] / src / gtk / combobox.cpp
index 3a8ee3af6a7a536bf7dc012a08ec03085a701ca0..b51c7c04abafca10dad4eb3f603edd040da07ee9 100644 (file)
@@ -104,7 +104,9 @@ bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value,
 
     PreCreation( parent, id, pos, size, style, name );
 
+#if wxUSE_VALIDATORS
     SetValidator( validator );
+#endif
 
     m_widget = gtk_combo_new();
 
@@ -164,13 +166,15 @@ bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value,
 
 wxComboBox::~wxComboBox()
 {
-    wxNode *node = m_clientDataList.First();
+    wxNode *node = m_clientObjectList.First();
     while (node)
     {
         wxClientData *cd = (wxClientData*)node->Data();
         if (cd) delete cd;
         node = node->Next();
     }
+    m_clientObjectList.Clear();
+
     m_clientDataList.Clear();
 }