forked from enlightenment/efl
elm efl_selection_manager: resolve possible memory leak.
This commit is contained in:
parent
e0f8e65d20
commit
296d117f2a
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue