elm view list - fix allocation of werong type size

the code allocated a much bigger data struct than needed. it used the
wrong sizeof() type. this fixes CID 1355013
This commit is contained in:
Carsten Haitzler 2016-07-09 12:23:06 +09:00
parent 116993504a
commit de9277460a
1 changed files with 1 additions and 1 deletions

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