e_compositor: Add null checking of ds_surface 76/310576/1
authorJunkyeong Kim <jk0430.kim@samsung.com>
Thu, 7 Mar 2024 05:49:02 +0000 (14:49 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Thu, 2 May 2024 05:49:42 +0000 (14:49 +0900)
Change-Id: I0869a916f14dca3fb82f841b732d6f0ac460b533

src/bin/e_compositor.c

index 7b41090ec4345d6cd487ae21b4607225ce095090..c4c7247b771100e4693d9314da3bc681fc0a3688 100644 (file)
@@ -1373,6 +1373,9 @@ _e_subsurface_from_surface(E_Surface *surface)
 {
    struct ds_subsurface *ds_subsurface;
 
+   if (!surface->ds_surface)
+     return NULL;
+
    ds_subsurface = ds_subsurface_from_surface(surface->ds_surface);
    if (!ds_subsurface)
      return NULL;