- Checks whether the pointer is null or NOT.
Change-Id: I8fc29b68f0a18577cedf7e0839e7182f977a4e71
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
id = ecore_wl_window_id_get(wl_win);
cxt = malloc(sizeof(win_context));
id = ecore_wl_window_id_get(wl_win);
cxt = malloc(sizeof(win_context));
+ if (cxt == NULL) {
+ _ERR("Out of memory");
+ return;
+ }
+
cxt->win_id = id;
cxt->inst = h;
__win_contexts = g_list_append(__win_contexts, cxt);
cxt->win_id = id;
cxt->inst = h;
__win_contexts = g_list_append(__win_contexts, cxt);