From 8640263e8759011724b512793e6eca2603bd4dda Mon Sep 17 00:00:00 2001 From: Doyoun Kang Date: Tue, 1 Aug 2017 13:05:56 +0900 Subject: [PATCH] e_comp_object: fix bug detected by static analysis tool Change-Id: I9f2e1ad374424e0c0f71a9d8ae4714b1a579719e --- src/bin/e_comp_object.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c index 6597162..52e5253 100644 --- a/src/bin/e_comp_object.c +++ b/src/bin/e_comp_object.c @@ -4100,6 +4100,7 @@ e_comp_object_shape_apply(Evas_Object *obj) unsigned char *spix, *sp; spix = calloc(w * h, sizeof(unsigned char)); + if (!spix) return; for (i = 0; i < cw->ec->shape_rects_num; i++) { int rx, ry, rw, rh; -- 2.7.4