ibox - make coverity happy by reordering free then list remove

fix CID 1403956
This commit is contained in:
Carsten Haitzler 2019-08-06 12:36:22 +01:00
parent 1fa7d4a07b
commit 554026cfe6
1 changed files with 1 additions and 1 deletions

View File

@ -1065,8 +1065,8 @@ _ibox_cb_event_client_remove(void *data EINA_UNUSED, int type EINA_UNUSED, void
{
ic = _ibox_icon_find(b, ev->ec);
if (!ic) continue;
_ibox_icon_free(ic);
b->icons = eina_list_remove(b->icons, ic);
_ibox_icon_free(ic);
_ibox_empty_handle(b);
_ibox_resize_handle(b);
_gc_orient(b->inst->gcc, -1);