summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2016-02-26 19:34:20 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2016-02-26 19:41:19 +0530
commit1018bcca27dafb04b5002da8094d5704396e5d2d (patch)
tree599f7d558728399f155a4504ddfc6d8fc9f9df5c
parent4b8fc63c2045456af0812306b445ebadb16f7d60 (diff)
view list: free style in base destructor.
typecast const char * to void * and pass ptr to free() since it doesn't modify the value pointed to, either conceptually or in practice, it merely looks up the memory block using the pointer and deallocates it. @fix
-rw-r--r--src/lib/elm_view_list.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elm_view_list.c b/src/lib/elm_view_list.c
index 0f3d1a25f..271a2428a 100644
--- a/src/lib/elm_view_list.c
+++ b/src/lib/elm_view_list.c
@@ -375,6 +375,7 @@ _elm_view_list_eo_base_destructor(Eo *obj, Elm_View_List_Data *priv)
375 eo_event_callback_array_del(model_callbacks(), priv->rootdata)); 375 eo_event_callback_array_del(model_callbacks(), priv->rootdata));
376 376
377 eo_do(priv->genlist, elm_obj_genlist_clear()); 377 eo_do(priv->genlist, elm_obj_genlist_clear());
378 free((void *)priv->itc->item_style);
378 elm_genlist_item_class_free(priv->itc); 379 elm_genlist_item_class_free(priv->itc);
379 380
380 eina_hash_free(priv->prop_con); 381 eina_hash_free(priv->prop_con);