e_maximize: fix dereference null 87/206187/3
authorJuyeon Lee <juyeonne.lee@samsung.com>
Wed, 15 May 2019 03:21:48 +0000 (12:21 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Wed, 15 May 2019 04:41:51 +0000 (04:41 +0000)
Change-Id: I840e84bd8e508c9243ff2fbede959fd159bd6ba7

src/bin/e_maximize.c

index 74b446b57e9cca4c33a4898b56ca346bbdd6d128..01325c55898824cc829631dc5192b498da1e2282 100644 (file)
@@ -10,6 +10,7 @@ struct _E_Maximize_Rect
 #define OBSTACLE(_x1, _y1, _x2, _y2)                              \
   {                                                               \
      r = E_NEW(E_Maximize_Rect, 1);                               \
+     if (!r) continue;                                            \
      r->x1 = (_x1); r->yy1 = (_y1); r->x2 = (_x2); r->y2 = (_y2); \
      rects = eina_list_append(rects, r);                          \
   }