elm_gen****: free item_content map
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Mon, 1 Jun 2020 01:46:29 +0000 (10:46 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Mon, 1 Jun 2020 04:32:27 +0000 (13:32 +0900)
Summary:
this should be freeed. Both can be freed in group_del after the items
are deleted.

fix T8732

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T8732

Differential Revision: https://phab.enlightenment.org/D11882

src/lib/elementary/elm_gengrid.c
src/lib/elementary/elm_genlist.c

index c72238a..222e8a1 100755 (executable)
@@ -5490,6 +5490,8 @@ _elm_gengrid_efl_canvas_group_group_del(Eo *obj, Elm_Gengrid_Data *sd)
    //ecore_job_del(sd->calc_job);
    //
 
+   eina_hash_free(sd->content_item_map);
+
    efl_canvas_group_del(efl_super(obj, MY_CLASS));
 }
 
index ab7ac57..1ffd835 100644 (file)
@@ -6278,6 +6278,7 @@ _elm_genlist_efl_canvas_group_group_del(Eo *obj, Elm_Genlist_Data *sd)
 
    eina_stringshare_replace(&sd->decorate_it_type, NULL);
 
+   eina_hash_free(sd->content_item_map);
    _elm_genlist_tree_effect_stop(sd);
 }