e: Check whether allocation succeeds

CID 1039865
This commit is contained in:
Sebastian Dransfeld 2013-12-10 20:37:17 +01:00
parent 06a85fca4d
commit ae8a067e6d
1 changed files with 1 additions and 0 deletions

View File

@ -339,6 +339,7 @@ e_container_shape_add(E_Container *con)
E_OBJECT_TYPE_CHECK_RETURN(con, E_CONTAINER_TYPE, 0);
es = E_OBJECT_ALLOC(E_Container_Shape, E_CONTAINER_SHAPE_TYPE, _e_container_shape_free);
if (!es) return NULL;
E_OBJECT_DEL_SET(es, _e_container_shape_del);
es->con = con;
con->shapes = eina_list_append(con->shapes, es);