From: Robin Dunn Date: Wed, 8 Nov 2006 04:54:47 +0000 (+0000) Subject: ensure m_table is not NULL before trying to access the view X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ecc7aa82034b6ebfb34c597b86cac4db03ca9382 ensure m_table is not NULL before trying to access the view git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 0b9df43112..f89d8470a6 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -4202,7 +4202,7 @@ wxGrid::~wxGrid() // with dangling view pointer if ( m_ownTable ) delete m_table; - else if ( m_table->GetView() == this ) + else if ( m_table && m_table->GetView() == this ) m_table->SetView(NULL); delete m_typeRegistry;