]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
cliet data crash fixed
[wxWidgets.git] / src / common / wincmn.cpp
index 9b9ec27e617b330899f69db2f06c7ed623984dcd..ae2c62a671691a9222274821d2fbbfb4452c2cf1 100644 (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