efl_ui_position_manager_list: add NULL check for memory allocation
Reviewers: Jaehyun_Cho, Hermet Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11312
This commit is contained in:
parent
2f852c92e8
commit
69352e7abe
|
@ -69,6 +69,7 @@ cache_require(Eo *obj EINA_UNUSED, Efl_Ui_Position_Manager_List_Data *pd)
|
|||
}
|
||||
|
||||
pd->size_cache = calloc(pd->size + 1, sizeof(int));
|
||||
if (!pd->size_cache) return;
|
||||
pd->size_cache[0] = 0;
|
||||
pd->maximum_min_size = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue