测试手动delete TreeNode
This commit is contained in:
parent
33cca66df5
commit
20d5e945c9
@ -79,6 +79,8 @@ int main(int,char **)
|
|||||||
auto *linux=manager.Create();
|
auto *linux=manager.Create();
|
||||||
(*linux)->SetPath("linux");
|
(*linux)->SetPath("linux");
|
||||||
root->AttachChild(linux);
|
root->AttachChild(linux);
|
||||||
|
|
||||||
|
delete linux; //手动释放
|
||||||
}
|
}
|
||||||
|
|
||||||
//自动释放到可以了,但是释放顺序需要处理下
|
//自动释放到可以了,但是释放顺序需要处理下
|
||||||
|
Loading…
x
Reference in New Issue
Block a user