e_comp_wl_subsurface: fix leak of below_obj_map and transform_hook 86/266386/6
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 11 Nov 2021 08:16:58 +0000 (17:16 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Mon, 15 Nov 2021 04:28:50 +0000 (13:28 +0900)
Change-Id: Ia9bb926409de3c39b5a524e18660c04af86497b4

src/bin/e_comp_wl_subsurface.c

index d7e3a6a..d81f998 100644 (file)
@@ -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