]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/datavgen.cpp
testing header replace
[wxWidgets.git] / src / generic / datavgen.cpp
index 388cd1b52ff26b154decd61de44674e9b2ac6eee..32691b07ab0ad7d0cc8381165290a5453b23b997 100644 (file)
@@ -2423,7 +2423,10 @@ bool wxDataViewMainWindow::IsExpanded( unsigned int row ) const
        return false;
        
     if (!node->HasChildren())
+    {
+       delete node;
        return false;
+    }
     
     return node->IsOpen();
 }