X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/840fc4d170537fc613609571f1b47bd1bdc7700b..dea9430d44a38837380865289c387ccd1f68a9de:/src/common/datavcmn.cpp diff --git a/src/common/datavcmn.cpp b/src/common/datavcmn.cpp index 8fbe034293..db46cfbc29 100644 --- a/src/common/datavcmn.cpp +++ b/src/common/datavcmn.cpp @@ -715,6 +715,9 @@ void wxDataViewRendererBase::DestroyEditControl() wxPendingDelete.Append(handler); wxPendingDelete.Append(m_editorCtrl); + + // Ensure that DestroyEditControl() is not called again for this control. + m_editorCtrl.Release(); } void wxDataViewRendererBase::CancelEditing()