1.Fix memory leak

2.Fix  stack error if delete Armature  immediately after creation