modules/ibar: Fix Dereference before null check. Also remove extra

call to ibar_resize_handle (is already called from ibar_fill).

Fixes CID1039813

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-09-05 11:02:16 -04:00
parent c8dd1d95d3
commit 911bffd23e
1 changed files with 5 additions and 3 deletions

View File

@ -1016,9 +1016,11 @@ _ibar_cb_app_change(void *data, E_Order *eo __UNUSED__)
EINA_INLIST_FOREACH(io->bars, b)
{
_ibar_empty(b);
_ibar_fill(b);
_ibar_resize_handle(b);
if (b->inst) _gc_orient(b->inst->gcc, -1);
if (b->inst)
{
_ibar_fill(b);
if (b->inst->gcc) _gc_orient(b->inst->gcc, -1);
}
}
}