genlist: do a proper clean up in clear().
authorAmitesh Singh <amitesh.sh@samsung.com>
Thu, 28 May 2015 10:59:22 +0000 (19:59 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Thu, 28 May 2015 10:59:22 +0000 (19:59 +0900)
Summary: Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>

Reviewers: raster, Hermet

Subscribers: seoz, sachin.dev

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

src/lib/elm_genlist.c

index af2e35a..7b0853f 100644 (file)
@@ -5656,6 +5656,11 @@ _internal_elm_genlist_clear(Evas_Object *obj)
    elm_layout_sizing_eval(sd->obj);
    eo_do(obj, elm_interface_scrollable_content_region_show(0, 0, 0, 0));
 
+   ELM_SAFE_FREE(sd->multi_timer, ecore_timer_del);
+   ELM_SAFE_FREE(sd->update_job, ecore_job_del);
+   ELM_SAFE_FREE(sd->queue_idle_enterer, ecore_idle_enterer_del);
+   ELM_SAFE_FREE(sd->must_recalc_idler, ecore_idler_del);
+   ELM_SAFE_FREE(sd->tree_effect_animator, ecore_animator_del);
    ELM_SAFE_FREE(sd->event_block_rect, evas_object_del);
    ELM_SAFE_FREE(sd->scr_hold_timer, ecore_timer_del);
    ELM_SAFE_FREE(sd->queue, eina_list_free);