From de9277460a9ad3b28bb55c60313e83dff3b96223 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sat, 9 Jul 2016 12:23:06 +0900 Subject: [PATCH] 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 --- src/lib/elementary/elm_view_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elementary/elm_view_list.c b/src/lib/elementary/elm_view_list.c index 0833535..4b6e77f 100644 --- a/src/lib/elementary/elm_view_list.c +++ b/src/lib/elementary/elm_view_list.c @@ -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; -- 2.7.4