e_comp_wl_subsurface: fix svace issue dereferencing null pointer. 94/217394/1
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 11 Nov 2019 07:42:53 +0000 (16:42 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Mon, 11 Nov 2019 07:42:53 +0000 (16:42 +0900)
Change-Id: I12f584383a5aa0ce802a64ef323e4fa5699a51c9

src/bin/e_comp_wl_subsurface.c

index 1fe0fb0646236fa935faa3fa55559abab85ea298..20e73dc64aef9d0b02318271c406659d34d840df 100644 (file)
@@ -10,6 +10,9 @@ _e_comp_wl_subsurface_restack_bg_rectangle(E_Client *ec)
 {
    E_Client *bottom = ec;
 
+   if (!ec || !ec->comp_data || e_object_is_del(E_OBJECT(ec)))
+     return;
+
    if (!ec->comp_data->sub.below_obj)
      return;