Fixes #10382: Memory leak in wxDataViewMainWindow::IsExpanded
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2423,7 +2423,10 @@ bool wxDataViewMainWindow::IsExpanded( unsigned int row ) const
|
||||
return false;
|
||||
|
||||
if (!node->HasChildren())
|
||||
{
|
||||
delete node;
|
||||
return false;
|
||||
}
|
||||
|
||||
return node->IsOpen();
|
||||
}
|
||||
|
Reference in New Issue
Block a user