From: Carsten Haitzler (Rasterman) Date: Fri, 8 Jul 2016 02:54:57 +0000 (+0900) Subject: elm view list - just be less obviously a possible bug to coverity X-Git-Tag: upstream/1.20.0~5315 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57e8e662b35f0cd99b4f4c4a425dd00124aaee72;p=platform%2Fupstream%2Fefl.git 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. --- diff --git a/src/lib/elementary/elm_view_list.c b/src/lib/elementary/elm_view_list.c index 1f7ee28..0833535 100644 --- a/src/lib/elementary/elm_view_list.c +++ b/src/lib/elementary/elm_view_list.c @@ -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; }