From 6ccec5fcb22b005847c7c2db769cdc7007a6454e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 3 Aug 1999 11:12:14 +0000 Subject: [PATCH] cliet data crash fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wincmn.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.50.0