elm efl_selection_manager: resolve possible memory leak.

This commit is contained in:
JongMin Lee 2018-04-27 14:04:02 +09:00 committed by Hermet Park
parent e0f8e65d20
commit 296d117f2a
1 changed files with 5 additions and 1 deletions

View File

@ -3743,7 +3743,11 @@ _wl_sel_manager_drop_target_add(Efl_Selection_Manager_Data *pd, Efl_Object *targ
{
//Create new drop
dropable = calloc(1, sizeof(Sel_Manager_Dropable));
if (!dropable) return EINA_FALSE;
if (!dropable)
{
free(df);
return EINA_FALSE;
}
pd->drop_list = eina_list_append(pd->drop_list, dropable);
if (!pd->drop_list)
{