elm view list - just be less obviously a possible bug to coverity

CID 1355014 is a false positive, but it's god to not confuse it too
often. clean up.
This commit is contained in:
Carsten Haitzler 2016-07-08 11:54:57 +09:00
parent 38735806c6
commit 57e8e662b3
1 changed files with 2 additions and 1 deletions

View File

@ -122,15 +122,16 @@ _item_get_value(View_List_ItemData *idata, const char *part)
{
if (vitem->part == NULL)
{
free(vitem);
unsigned i = eina_list_count(idata->values);
if (i == 1)
{
idata->values = eina_list_remove(idata->values, vitem);
idata->values = NULL;
free(vitem);
break;
}
idata->values = eina_list_remove_list(idata->values, l);
free(vitem);
continue;
}