diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 9432668a5c..02b2572d7b 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -4731,6 +4731,7 @@ wxDataViewCtrl::~wxDataViewCtrl() m_colsBestWidths.clear(); #if wxUSE_ACCESSIBILITY + SetAccessible(NULL); wxAccessible::NotifyEvent(wxACC_EVENT_OBJECT_DESTROY, this, wxOBJID_CLIENT, wxACC_SELF); #endif // wxUSE_ACCESSIBILITY }