edje_edit: add NULL check for eina_mempool_malloc in _edje_edit_state_alloc() 54/123754/1
authorJEONGHYUN YUN <jh0506.yun@samsung.com>
Fri, 7 Apr 2017 02:01:44 +0000 (11:01 +0900)
committerJEONGHYUN YUN <jh0506.yun@samsung.com>
Fri, 7 Apr 2017 02:02:24 +0000 (11:02 +0900)
commit70da6a69d61158e0580acba04a9baf51b9a313ce
tree2bc8155c2856e25f917fc64d971459609ace7c85
parent4767786ca8c868e1b8631c8be10289a209bd2c39
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

Change-Id: Ibe66a7b3217449a965022c94c9eee4ba8e90717d
Signed-off-by: JEONGHYUN YUN <jh0506.yun@samsung.com>
src/lib/edje/edje_edit.c