Fix memory leak #1167

Closed
simonla wants to merge 1 commits from main into main
simonla commented 2022-10-12 04:50:40 -07:00 (Migrated from github.com)
image

root_child0 be removed byYGNodeRemoveChild(root, root_child0);
so YGNodeFreeRecursive(root); can not free root_child0

<img width="1126" alt="image" src="https://user-images.githubusercontent.com/14934570/195335369-e3fccde7-ff6c-4437-a261-7bc7435143c2.png"> `root_child0` be removed by`YGNodeRemoveChild(root, root_child0);` so `YGNodeFreeRecursive(root);` can not free `root_child0`
motiz88 commented 2022-10-12 05:06:04 -07:00 (Migrated from github.com)

Looks good, thanks @simonla!

Looks good, thanks @simonla!
facebook-github-bot commented 2022-10-12 05:06:28 -07:00 (Migrated from github.com)

@motiz88 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@motiz88 has imported this pull request. If you are a Meta employee, you can view this diff [on Phabricator](https://www.internalfb.com/diff/D40298891).

Pull request closed

Sign in to join this conversation.
No description provided.