ibar: add some safeguards to make sure an icon has an exe_current

before trying to get list data from it.

NB: Safeguards added to stop crashes from happening during a
mouse_wheel (reported from Guy Martin).

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-06-26 16:30:45 -04:00
parent 64683742c4
commit 8c21a8a0a0
1 changed files with 5 additions and 2 deletions

View File

@ -1691,8 +1691,11 @@ _ibar_cb_icon_wheel(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__,
if (!sel)
{
exe = eina_list_data_get(ic->exe_current);
sel = eina_list_data_get(exe->clients);
if (ic->exe_current)
{
if ((exe = eina_list_data_get(ic->exe_current)))
sel = eina_list_data_get(exe->clients);
}
}
if (sel)