SvgLoader: Do not delete the cloned node

Reverted incorrectly modified code in 3b9bb51321.

The newly created node becomes a child of the parent parameter
and is deleted together when parsing ends.
This commit is contained in:
JunsuChoi 2020-09-03 19:18:49 +09:00
parent 6e649f10ef
commit 69e8b54be2

View file

@ -1458,8 +1458,6 @@ static void _cloneNode(SvgNode* from, SvgNode* parent)
for (uint32_t i = 0; i < from->child.cnt; ++i, ++child) { for (uint32_t i = 0; i < from->child.cnt; ++i, ++child) {
_cloneNode(*child, newNode); _cloneNode(*child, newNode);
} }
_freeNode(newNode);
} }