Skip to content

Commit

Permalink
[c]修改DMTreeT.h中删除节点时先删除父节点后删除子节点的bug(两句合一句)
Browse files Browse the repository at this point in the history
  • Loading branch information
天涯行客 committed Mar 15, 2019
1 parent a4d4573 commit 133a31a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions DmMain/inc/Common/Template/DMTreeT.h
Original file line number Diff line number Diff line change
Expand Up @@ -516,12 +516,9 @@ namespace DM
FreeNode(hSibling);
hSibling=hNextSibling;
}
if (hsNode != DMTVN_ROOT)
{
OnNodeFree(hsNode->data);// 在树形结构破坏前释放
}
if (hsNode!=DMTVN_ROOT)
{
OnNodeFree(hsNode->data);// 在树形结构破坏前释放
delete hsNode;
}
}
Expand Down

0 comments on commit 133a31a

Please sign in to comment.