]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datavcmn.cpp
Fix destruction of wxDataViewCtrl's editor control.
[wxWidgets.git] / src / common / datavcmn.cpp
index 8fbe034293ec0ccb15bd80c234727f52fe1f9a19..db46cfbc292e818d3915b06ff65d8b2ea34a4992 100644 (file)
@@ -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()