git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43034
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
total ? (gs_nAttrCacheHits*100) / total : 0);
#endif
total ? (gs_nAttrCacheHits*100) / total : 0);
#endif
+ // if we own the table, just delete it, otherwise at least don't leave it
+ // with dangling view pointer
+ if ( m_ownTable )
+ else if ( m_table->GetView() == this )
+ m_table->SetView(NULL);
delete m_typeRegistry;
delete m_selection;
delete m_typeRegistry;
delete m_selection;