X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f148f2bac3fb0fa6d984050fb940112da150aeff..700c96d420c7413ff2220e16e848962bdd2e45eb:/src/mac/combobox.cpp?ds=sidebyside diff --git a/src/mac/combobox.cpp b/src/mac/combobox.cpp index c3c5660bbf..5a911361cf 100644 --- a/src/mac/combobox.cpp +++ b/src/mac/combobox.cpp @@ -162,7 +162,10 @@ END_EVENT_TABLE() wxComboBox::~wxComboBox() { - // delete the controls now, don't leave them alive even though they would + // delete client objects + FreeData(); + + // delete the controls now, don't leave them alive even though they would // still be eventually deleted by our parent - but it will be too late, the // user code expects them to be gone now if (m_text != NULL) {