e_comp_object: fix bug detected by static analysis tool
authorDoyoun Kang <doyoun.kang@samsung.com>
Tue, 1 Aug 2017 04:05:56 +0000 (13:05 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Tue, 1 Aug 2017 05:30:03 +0000 (14:30 +0900)
Change-Id: I9f2e1ad374424e0c0f71a9d8ae4714b1a579719e

src/bin/e_comp_object.c

index 659716222dbc36f6a826e88e2c7edaee0958f1a4..52e5253cfbdaefde4c9d39950ebc7f141c8434e9 100644 (file)
@@ -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;