forked from enlightenment/efl
elm ctxpopup - be consistent with scope data checks
makes coverity happy. CID 1403898
This commit is contained in:
parent
807c8e7357
commit
b0ad81d927
|
@ -863,9 +863,12 @@ _elm_ctxpopup_item_elm_widget_item_del_pre(Eo *eo_ctxpopup_it EINA_UNUSED,
|
|||
if (ctxpopup_it->list_item)
|
||||
{
|
||||
Elm_Ctxpopup_Data *sd = efl_data_scope_safe_get(WIDGET(ctxpopup_it), MY_CLASS);
|
||||
if (sd->list)
|
||||
elm_object_item_del(ctxpopup_it->list_item);
|
||||
ctxpopup_it->list_item = NULL;
|
||||
if (sd)
|
||||
{
|
||||
if (sd->list)
|
||||
elm_object_item_del(ctxpopup_it->list_item);
|
||||
ctxpopup_it->list_item = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue