summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-02-18 15:02:47 +0900
committerHermet Park <hermetpark@gmail.com>2019-02-21 10:36:49 +0900
commit1442690680d8d2b0e93d432b32a71db3c161e22d (patch)
tree10a1d4da0df0fba6130f7e302881887ac8185db2 /src/static_libs
parent63e11e1b18f0af3c491f3d793fc683e2eb7e9f08 (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.c1
1 files changed, 1 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 703ebde..c17b024 100644
--- a/src/static_libs/vg_common/vg_common_svg.c
+++ b/src/static_libs/vg_common/vg_common_svg.c
@@ -884,6 +884,7 @@ _create_gradient_node(Efl_VG *vg)
884 unsigned int count = 0, i; 884 unsigned int count = 0, i;
885 885
886 Svg_Style_Gradient *grad = calloc(1, sizeof(Svg_Style_Gradient)); 886 Svg_Style_Gradient *grad = calloc(1, sizeof(Svg_Style_Gradient));
887 EINA_SAFETY_ON_NULL_RETURN_VAL(grad, NULL);
887 888
888 grad->spread = evas_vg_gradient_spread_get(vg); 889 grad->spread = evas_vg_gradient_spread_get(vg);
889 evas_vg_gradient_stop_get(vg, &stops, &count); 890 evas_vg_gradient_stop_get(vg, &stops, &count);