raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=57e8e662b35f0cd99b4f4c4a425dd00124aaee72

commit 57e8e662b35f0cd99b4f4c4a425dd00124aaee72
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Fri Jul 8 11:54:57 2016 +0900

    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.
---
 src/lib/elementary/elm_view_list.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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;
            }
 

-- 


Reply via email to