cliet data crash fixed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-08-03 11:12:14 +00:00
parent 7bcd390c94
commit 6ccec5fcb2

View File

@ -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