elm view list - fix allocation of werong type size
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 9 Jul 2016 03:23:06 +0000 (12:23 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 9 Jul 2016 03:23:06 +0000 (12:23 +0900)
the code allocated a much bigger data struct than needed. it used the
wrong sizeof() type. this fixes CID 1355013

src/lib/elementary/elm_view_list.c

index 0833535..4b6e77f 100644 (file)
@@ -145,7 +145,7 @@ _item_get_value(View_List_ItemData *idata, const char *part)
    if (value == NULL)
      {
          Eina_Promise *promise;
-         vitem = calloc(1, sizeof(View_List_ItemData));
+         vitem = calloc(1, sizeof(View_List_ValueItem));
          const char *prop = eina_hash_find(idata->priv->prop_con, part);
 
          if (prop == NULL) prop = part;