summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <chuneon.park@samsung.com>2020-04-17 18:14:48 +0900
committerHermet Park <chuneon.park@samsung.com>2020-04-17 18:16:03 +0900
commit989570b133df8e509a4c35cf89b0f11a6dd67ddb (patch)
tree8a313e28ad1be712323751e78a7213901895cd71
parent7ac765c71b94c1124cb8d672960a12758747cad9 (diff)
canvas svg: fix memory leak.
free svg node commands & points data after usage. @fix
-rw-r--r--src/static_libs/vg_common/vg_common_svg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/static_libs/vg_common/vg_common_svg.c b/src/static_libs/vg_common/vg_common_svg.c
index 526787df0d..de5477bb0e 100644
--- a/src/static_libs/vg_common/vg_common_svg.c
+++ b/src/static_libs/vg_common/vg_common_svg.c
@@ -540,7 +540,9 @@ vg_common_svg_node_free(Svg_Node *node)
540 default: 540 default:
541 break; 541 break;
542 } 542 }
543 free(node); 543 if (node->node.command.commands_count > 0) free(node->node.command.commands);
544 if (node->node.command.points_count > 0) free(node->node.command.points);
545 free(node);
544} 546}
545 547
546static Efl_VG * 548static Efl_VG *