From f19e94b819d02461e9af5d1b3977ecf428fe1637 Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Wed, 22 Jul 2020 13:00:31 +0900 Subject: [PATCH] Revert "Revert "subsurface: check validation of ec at the entry of EINTERN function."" This reverts commit 62019ea6f6155e924529ec345ce6b5507c2e388e. Change-Id: I20e73330d05f720a4b08f462004990a371da63f7 --- src/bin/e_comp_wl_subsurface.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/e_comp_wl_subsurface.c b/src/bin/e_comp_wl_subsurface.c index 69c21522b4..e199bd6787 100644 --- a/src/bin/e_comp_wl_subsurface.c +++ b/src/bin/e_comp_wl_subsurface.c @@ -164,7 +164,6 @@ _e_comp_wl_subsurface_below_obj_destroy(E_Client *ec) static void _e_comp_wl_subsurface_check_below_bg_rectangle(E_Client *ec) { - if (!ec || e_object_is_del(E_OBJECT(ec)) || !ec->comp_data) return; if (ec->comp_data->sub.data) { E_Client *topmost = e_comp_wl_topmost_parent_get(ec); @@ -1197,5 +1196,10 @@ e_comp_wl_normal_subsurface_has(E_Client *ec) EINTERN void e_comp_wl_subsurface_check_below_bg_rectangle(E_Client *ec) { + EINA_SAFETY_ON_NULL_RETURN(ec); + + if ((e_object_is_del(E_OBJECT(ec))) || (!ec->comp_data)) + return; + _e_comp_wl_subsurface_check_below_bg_rectangle(ec); } -- 2.34.1