summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorSubhransu Mohanty <smohantty@gmail.com>2020-06-01 18:53:36 +0900
committerHermet Park <chuneon.park@samsung.com>2020-06-01 18:53:36 +0900
commit161e411d183f0b2d5c19a3a99b5e91e2246f5541 (patch)
tree704051c1f2a6530ad3f32de9891ce6bd280c1335 /src/static_libs
parentb981667d52b721fcde217abd8497ef2feba65690 (diff)
svg/loader: Fix memory leak
Reviewers: Hermet Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11908
Diffstat (limited to 'src/static_libs')
-rw-r--r--src/static_libs/vg_common/vg_common_svg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/static_libs/vg_common/vg_common_svg.c b/src/static_libs/vg_common/vg_common_svg.c
index de5477bb0e..058cdf99e0 100644
--- a/src/static_libs/vg_common/vg_common_svg.c
+++ b/src/static_libs/vg_common/vg_common_svg.c
@@ -536,12 +536,14 @@ vg_common_svg_node_free(Svg_Node *node)
536 { 536 {
537 _svg_style_gradient_free(grad); 537 _svg_style_gradient_free(grad);
538 } 538 }
539 case SVG_NODE_CUSTOME_COMMAND:
540 if (node->node.command.commands) free(node->node.command.commands);
541 if (node->node.command.points) free(node->node.command.points);
539 break; 542 break;
540 default: 543 default:
541 break; 544 break;
542 } 545 }
543 if (node->node.command.commands_count > 0) free(node->node.command.commands); 546
544 if (node->node.command.points_count > 0) free(node->node.command.points);
545 free(node); 547 free(node);
546} 548}
547 549