elm_prefs_data: add null checking after memory allocation

This commit is contained in:
Jaeun Choi 2017-08-09 16:03:31 +09:00
parent db33efb792
commit 38abae53c0
1 changed files with 2 additions and 0 deletions

View File

@ -234,6 +234,8 @@ _eet_data_load(Elm_Prefs_Data *prefs_data,
EINA_LIST_FREE(values->values, it)
{
Elm_Prefs_Data_Item *item = malloc(sizeof(*item));
if (!item) continue;
Eina_Bool skip = EINA_FALSE;
Eina_Bool set_err = EINA_FALSE;
Eina_Bool setup_err = EINA_FALSE;