forked from enlightenment/efl
efl_ui_*: fix dereferencing of possible NULL values
this fixes CID 1404763 & 1404751 & 1403904
This commit is contained in:
parent
22f3cc0574
commit
b4976fdf2c
|
@ -1803,6 +1803,7 @@ _elm_layout_efl_canvas_group_change(Eo *obj, Elm_Layout_Data *ld)
|
|||
|
||||
if (!efl_finalized_get(obj)) return;
|
||||
sd = efl_data_scope_safe_get(obj, EFL_UI_LAYOUT_BASE_CLASS);
|
||||
EINA_SAFETY_ON_NULL_RETURN(sd);
|
||||
if (sd->frozen) return;
|
||||
ld->needs_size_calc = EINA_TRUE;
|
||||
efl_canvas_group_change(efl_super(obj, ELM_LAYOUT_MIXIN));
|
||||
|
|
|
@ -65,6 +65,8 @@ static void
|
|||
_selected_cb(void *data, const Efl_Event *ev)
|
||||
{
|
||||
Efl_Ui_Radio_Group_Impl_Data *pd = efl_data_scope_safe_get(data, EFL_UI_RADIO_GROUP_IMPL_CLASS);
|
||||
EINA_SAFETY_ON_NULL_RETURN(pd);
|
||||
|
||||
if (efl_ui_selectable_selected_get(ev->object))
|
||||
{
|
||||
if (pd->selected)
|
||||
|
|
|
@ -39,6 +39,8 @@ _selelction_change_cb(void *data, const Efl_Event *ev)
|
|||
{
|
||||
Efl_Ui_Tab_Bar_Data *pd = efl_data_scope_safe_get(data, MY_CLASS);
|
||||
|
||||
EINA_SAFETY_ON_NULL_RETURN(pd);
|
||||
|
||||
if (!efl_ui_selectable_selected_get(ev->object))
|
||||
{
|
||||
if (pd->selected == ev->object)
|
||||
|
|
Loading…
Reference in New Issue