ami pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=1018bcca27dafb04b5002da8094d5704396e5d2d

commit 1018bcca27dafb04b5002da8094d5704396e5d2d
Author: Amitesh Singh <amitesh...@samsung.com>
Date:   Fri Feb 26 19:34:20 2016 +0530

    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
---
 src/lib/elm_view_list.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/elm_view_list.c b/src/lib/elm_view_list.c
index 0f3d1a2..271a242 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)
          eo_event_callback_array_del(model_callbacks(), priv->rootdata));
 
    eo_do(priv->genlist, elm_obj_genlist_clear());
+   free((void *)priv->itc->item_style);
    elm_genlist_item_class_free(priv->itc);
 
    eina_hash_free(priv->prop_con);

-- 


Reply via email to