From: Changyeon Lee Date: Thu, 11 Nov 2021 08:16:58 +0000 (+0900) Subject: e_comp_wl_subsurface: fix leak of below_obj_map and transform_hook X-Git-Tag: accepted/tizen/unified/20211117.130407~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac21e90a1068945262cd4147b7a00e666802c67f;p=platform%2Fupstream%2Fenlightenment.git e_comp_wl_subsurface: fix leak of below_obj_map and transform_hook Change-Id: Ia9bb926409de3c39b5a524e18660c04af86497b4 --- diff --git a/src/bin/e_comp_wl_subsurface.c b/src/bin/e_comp_wl_subsurface.c index d7e3a6a..d81f998 100644 --- a/src/bin/e_comp_wl_subsurface.c +++ b/src/bin/e_comp_wl_subsurface.c @@ -310,6 +310,13 @@ _e_comp_wl_subsurface_below_obj_destroy(E_Client *ec) evas_object_event_callback_del(ec->frame, EVAS_CALLBACK_DEL, _e_comp_wl_subsurface_bg_evas_cb_del); E_FREE_FUNC(ec->comp_data->sub.below_obj, evas_object_del); + + if (ec->comp_data->sub.below_obj_map) + { + e_map_free(ec->comp_data->sub.below_obj_map); + ec->comp_data->sub.below_obj_map = NULL; + } + E_FREE_FUNC(ec->comp_data->sub.below_obj_map_transform_hook, e_client_hook_del); } static void