summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-02-27 19:13:18 +0900
committerHermet Park <hermetpark@gmail.com>2019-02-27 19:13:18 +0900
commit7c8210d8a678461b3f0fab7b273474bc5e0fb191 (patch)
tree365cbfee36346c78d6086f772970d75346b8085f /src/static_libs
parent1cce37f6f5d4696e20d97c3109e0d50100ebae3a (diff)
evas vg: don't access a dangling pointer.
Diffstat (limited to 'src/static_libs')
-rw-r--r--src/static_libs/vg_common/vg_common_svg.c3
1 files changed, 2 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 6b18a0e..c55a057 100644
--- a/src/static_libs/vg_common/vg_common_svg.c
+++ b/src/static_libs/vg_common/vg_common_svg.c
@@ -847,7 +847,8 @@ _create_node(Svg_Node *parent, Svg_Node_Type type)
847 if (!node->style) 847 if (!node->style)
848 { 848 {
849 free(node); 849 free(node);
850 EINA_SAFETY_ON_NULL_RETURN_VAL(node->style, NULL); 850 ERR("OOM: Failed calloc()");
851 return NULL;
851 } 852 }
852 853
853 // update the default value of stroke and fill 854 // update the default value of stroke and fill