Under wxOSX the order of calls to wxItemContainer::Clear() and wxTextEntry::Clear() matters. Number of data objects to delete in wxItemContainer::Clear() is obtained by call to wxComboBox::Count(). Counter of items in wxComboBox is reset by wxTextEntry()::Clear() so this method has to be called after wxItemContainer::Clear(). Closes #18768.