From: Vadim Zeitlin Date: Tue, 3 Aug 1999 11:12:14 +0000 (+0000) Subject: cliet data crash fixed X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6ccec5fcb22b005847c7c2db769cdc7007a6454e cliet data crash fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 9b9ec27e61..ae2c62a671 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -213,7 +213,8 @@ wxWindowBase::~wxWindowBase() delete m_windowValidator; #endif // wxUSE_VALIDATORS - if ( m_clientObject ) + // we only delete object data, not untyped + if ( m_clientDataType == ClientData_Object ) delete m_clientObject; #if wxUSE_CONSTRAINTS