Revert "subsurface: check validation of ec at the entry of EINTERN function." 46/239046/1
authorSeunghun Lee <shiin.lee@samsung.com>
Tue, 21 Jul 2020 09:44:33 +0000 (18:44 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Tue, 21 Jul 2020 09:45:36 +0000 (18:45 +0900)
This reverts commit bf2c1062e1171431778f9d0823ad36f096b41052.

Change-Id: I9f59a18408fbc0d648a17813ab37eaf224db4d5d

src/bin/e_comp_wl_subsurface.c

index e199bd67875119f28a8ddcfe8458f0d7419e3cc0..69c21522b486f20462d5f7d97ddbe6cd8ebe86b2 100644 (file)
@@ -164,6 +164,7 @@ _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);
@@ -1196,10 +1197,5 @@ 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);
 }