forked from enlightenment/efl
canvas svg: fix memory leak.
free svg node commands & points data after usage. @fix
This commit is contained in:
parent
7ac765c71b
commit
989570b133
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue