Avoid using already-destroyed parts of wxChoice/wxComboBox during destruction
When used as a wxDVC cell editor, GtkComboBox has already destroyed it's model and child GtkEntry by the time our dtor is called. See #17034
This commit is contained in:
@@ -170,7 +170,8 @@ void wxChoice::DoClear()
|
||||
|
||||
GtkComboBox* combobox = GTK_COMBO_BOX( m_widget );
|
||||
GtkTreeModel* model = gtk_combo_box_get_model( combobox );
|
||||
gtk_list_store_clear(GTK_LIST_STORE(model));
|
||||
if (model)
|
||||
gtk_list_store_clear(GTK_LIST_STORE(model));
|
||||
|
||||
m_clientData.Clear();
|
||||
|
||||
|
Reference in New Issue
Block a user