优化
This commit is contained in:
parent
ae5ac85603
commit
b66d7daea8
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,10 @@ public:
|
|||
binNode *rc;
|
||||
~binNode()
|
||||
{
|
||||
if(isLC(this))
|
||||
parent->lc = NULL;
|
||||
else
|
||||
parent->rc = NULL;
|
||||
delete lc;
|
||||
delete rc;
|
||||
}
|
||||
|
|
Reference in a new issue