Delete YGNode only root of Flex::Node 01/274901/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Wed, 11 May 2022 14:10:11 +0000 (23:10 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 12 May 2022 05:56:09 +0000 (14:56 +0900)
commit40455b5d07b94320ec953a906f861bd9d6a367f4
tree7884b200714d92f72e8f7fcc616609560a995ffe
parent4464c30c30e68c6eee56cda1a201b22eb164fd20
Delete YGNode only root of Flex::Node

YGNode remove the memory recursively internally.
If we delete childe node's YGNode, it become double free.

This patch make Flex::Node free only it's own YGNode.

Change-Id: I1f68552ee79d1aa6a503ae67f1b3c1d45c77985b
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
automated-tests/src/dali-toolkit/utc-Dali-FlexNode.cpp
dali-toolkit/devel-api/layouting/flex-node.cpp
dali-toolkit/devel-api/layouting/flex-node.h