canvas svg: fix memory leak.

free svg node commands & points data after usage.

@fix
This commit is contained in:
Hermet Park 2020-04-17 18:14:48 +09:00
parent 7ac765c71b
commit 989570b133
1 changed files with 3 additions and 1 deletions

View File

@ -540,7 +540,9 @@ vg_common_svg_node_free(Svg_Node *node)
default:
break;
}
free(node);
if (node->node.command.commands_count > 0) free(node->node.command.commands);
if (node->node.command.points_count > 0) free(node->node.command.points);
free(node);
}
static Efl_VG *