]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/regtest/regtest.cpp
Large image-loading speedup and small attribute-loading speedup
[wxWidgets.git] / samples / regtest / regtest.cpp
index 3baae4694f75260b9a7f0f0cf4d3f4be1541fa59..ac77e7bb811f3d16310c1a6c0d0bd26ffd42fea8 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     03.04.98
 // RCS-ID:      $Id$
 // Copyright:   (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
 // ============================================================================
@@ -1031,8 +1031,7 @@ void RegTreeCtrl::TreeNode::OnCollapse()
 {
     DestroyChildren();
 
-    delete m_pKey;
-    m_pKey = NULL;
+    wxDELETE(m_pKey);
 }
 
 void RegTreeCtrl::TreeNode::Refresh()