mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
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:
parent
6e649f10ef
commit
69e8b54be2
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue