edje_edit: add NULL check for eina_mempool_malloc in _edje_edit_state_alloc()
authorJEONGHYUN YUN <jh0506.yun@samsung.com>
Thu, 6 Apr 2017 21:23:19 +0000 (14:23 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Thu, 6 Apr 2017 22:20:49 +0000 (15:20 -0700)
commit5ed7378303c5f7ed3efeab307b57dcadfa00f7f5
treeebf434c22fae2c02c1886a3afbb8a47b622f2ea1
parent3aa0ce099fbc49955ab2c1d3b367720c25df5b7c
edje_edit: add NULL check for eina_mempool_malloc in _edje_edit_state_alloc()

Summary: Pointer eina_mempool_malloc return value may have NULL value when
module aren't properly installed. This reduce the chance of a crash and increase
the likelyness of properly handling the failure.

Reviewers: jpeg, jypark

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4763

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/edje/edje_edit.c