summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-02-18 15:09:44 +0900
committerHermet Park <hermetpark@gmail.com>2019-02-21 10:36:49 +0900
commit0a47a0ef3274b37508f0ddc31d0153d4a244d1f2 (patch)
treed440145bd0b362ad8e84a47d23a3a5e703a8fb28 /src/static_libs
parenta921040743aece335cd8040d3f28084c6932958c (diff)
evas vg: check for OOM when calloc()
Diffstat (limited to 'src/static_libs')
-rw-r--r--src/static_libs/vg_common/vg_common_svg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/static_libs/vg_common/vg_common_svg.c b/src/static_libs/vg_common/vg_common_svg.c
index 396c4db..9c69b14 100644
--- a/src/static_libs/vg_common/vg_common_svg.c
+++ b/src/static_libs/vg_common/vg_common_svg.c
@@ -844,6 +844,11 @@ _create_node(Svg_Node *parent, Svg_Node_Type type)
844 844
845 // default fill property 845 // default fill property
846 node->style = calloc(1, sizeof(Svg_Style_Property)); 846 node->style = calloc(1, sizeof(Svg_Style_Property));
847 if (!node->style)
848 {
849 free(node);
850 EINA_SAFETY_ON_NULL_RETURN_VAL(node->style, NULL);
851 }
847 852
848 // update the default value of stroke and fill 853 // update the default value of stroke and fill
849 //https://www.w3.org/TR/SVGTiny12/painting.html#SpecifyingPaint 854 //https://www.w3.org/TR/SVGTiny12/painting.html#SpecifyingPaint