e_comp_wl_rsm: fixed wrong access to deleted parent ec of subsurface 64/212264/3 accepted/tizen/unified/20190820.114940 submit/tizen/20190820.065053
authorMinJeong Kim <minjjj.kim@samsung.com>
Mon, 19 Aug 2019 11:12:22 +0000 (20:12 +0900)
committerMinJeong Kim <minjjj.kim@samsung.com>
Tue, 20 Aug 2019 07:49:48 +0000 (16:49 +0900)
Change-Id: Ie648aac34868ea591c049659f311ccea992fa638
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
src/bin/e_comp_wl_rsm.c

index 135c4fde24913efaebccf8c9dd5b373ddc6ac231..161afa231c432907c5b8f56bc16b7b00ff9c4b40 100644 (file)
@@ -3108,6 +3108,12 @@ e_comp_wl_remote_surface_commit(E_Client *ec)
         if (!sdata->parent)
           return EINA_FALSE;
 
+        if (!sdata->parent->comp_data)
+          return EINA_FALSE;
+
+        if (e_object_is_del(E_OBJECT(sdata->parent)))
+          return EINA_FALSE;
+
         if (!(ssdata = sdata->parent->comp_data->sub.data))
           return EINA_FALSE;