forked from enlightenment/enlightenment
enlightenment: Ensure we have a valid menu comp object before calling
Summary: evas functions This fixes an issue when quickly mousing through menus can cause a segfault in Enlightenment due to menu->comp_object being NULL ref T7030 Reviewers: zmike Reviewed By: zmike Subscribers: cedric Tags: #efl, #enlightenment22 Maniphest Tasks: T7030 Differential Revision: https://phab.enlightenment.org/D6641
This commit is contained in:
parent
986edaf484
commit
f2e0e2d785
|
@ -1176,10 +1176,14 @@ e_menu_idler_before(void)
|
|||
/* phase 4. de-activate... */
|
||||
EINA_LIST_REVERSE_FOREACH(_e_active_menus, l, m)
|
||||
{
|
||||
if ((!m->active) && (!evas_object_visible_get(m->comp_object)))
|
||||
if (!m->active)
|
||||
{
|
||||
_e_menu_unrealize(m);
|
||||
removals = eina_list_append(removals, m);
|
||||
if ((m->realized) &&
|
||||
(!evas_object_visible_get(m->comp_object)))
|
||||
{
|
||||
_e_menu_unrealize(m);
|
||||
removals = eina_list_append(removals, m);
|
||||
}
|
||||
}
|
||||
}
|
||||
EINA_LIST_FREE(removals, m)
|
||||
|
|
Loading…
Reference in New Issue