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:
Yeongjong Lee 2020-02-12 16:45:40 +09:00 committed by Hermet Park
parent 2f852c92e8
commit 69352e7abe
1 changed files with 1 additions and 0 deletions

View File

@ -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;