From: JunsuChoi Date: Tue, 2 Jun 2020 03:20:37 +0000 (+0900) Subject: elm_hoversel: Add missing resize_job's free X-Git-Tag: accepted/tizen/unified/20200604.164556~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F56%2F235056%2F1;p=platform%2Fupstream%2Fefl.git elm_hoversel: Add missing resize_job's free Summary: resize_job can be called after obj is deleted. So add free to destructor. Test Plan: N/A Reviewers: Hermet, herb, kimcinoo, zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11911 Change-Id: I5497ea6fa52198b30fee6d1f2283ea9a0141da8c --- diff --git a/src/lib/elementary/elc_hoversel.c b/src/lib/elementary/elc_hoversel.c index f72a1e2..d1c8fd7 100644 --- a/src/lib/elementary/elc_hoversel.c +++ b/src/lib/elementary/elc_hoversel.c @@ -771,8 +771,11 @@ _elm_hoversel_efl_object_constructor(Eo *obj, Elm_Hoversel_Data *_pd EINA_UNUSED } EOLIAN static void -_elm_hoversel_efl_object_destructor(Eo *obj, Elm_Hoversel_Data *_pd EINA_UNUSED) +_elm_hoversel_efl_object_destructor(Eo *obj, Elm_Hoversel_Data *_pd) { + if (_pd->resize_job) + ELM_SAFE_FREE(_pd->resize_job, ecore_job_del); + elm_obj_hoversel_clear(obj); efl_destructor(efl_super(obj, MY_CLASS)); }