summaryrefslogtreecommitdiff
path: root/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
diff options
context:
space:
mode:
authorHermet Park <chuneon.park@samsung.com>2020-10-12 18:37:55 +0900
committerHermet Park <chuneon.park@samsung.com>2020-10-12 18:37:55 +0900
commit9e14a57020bd1a888f3b7f3568dcb7c6baf18f17 (patch)
treeb2666a07f7969a17255e6691a465582f2a6af20a /src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
parent862e65c2608c9a92c084754d1cc526b7c574aea1 (diff)
evas svg: avoid unnecessary memory clear.
Diffstat (limited to '')
-rw-r--r--src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c b/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
index 721851e4fd..4d5676c1df 100644
--- a/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
+++ b/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
@@ -1650,12 +1650,12 @@ _copy_attribute(Svg_Node *to, Svg_Node *from)
1650 break; 1650 break;
1651 case SVG_NODE_POLYGON: 1651 case SVG_NODE_POLYGON:
1652 to->node.polygon.points_count = from->node.polygon.points_count; 1652 to->node.polygon.points_count = from->node.polygon.points_count;
1653 to->node.polygon.points = calloc(to->node.polygon.points_count, sizeof(double)); 1653 to->node.polygon.points = malloc(to->node.polygon.points_count, sizeof(double));
1654 memcpy(to->node.polygon.points, from->node.polygon.points, to->node.polygon.points_count * sizeof(double)); 1654 memcpy(to->node.polygon.points, from->node.polygon.points, to->node.polygon.points_count * sizeof(double));
1655 break; 1655 break;
1656 case SVG_NODE_POLYLINE: 1656 case SVG_NODE_POLYLINE:
1657 to->node.polyline.points_count = from->node.polyline.points_count; 1657 to->node.polyline.points_count = from->node.polyline.points_count;
1658 to->node.polyline.points = calloc(to->node.polyline.points_count, sizeof(double)); 1658 to->node.polyline.points = malloc(to->node.polyline.points_count, sizeof(double));
1659 memcpy(to->node.polyline.points, from->node.polyline.points, to->node.polyline.points_count * sizeof(double)); 1659 memcpy(to->node.polyline.points, from->node.polyline.points, to->node.polyline.points_count * sizeof(double));
1660 break; 1660 break;
1661 default: 1661 default: