e_compositor: Add null checking of ds_surface 34/307334/1
authorJunkyeong Kim <jk0430.kim@samsung.com>
Thu, 7 Mar 2024 05:49:02 +0000 (14:49 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 7 Mar 2024 08:47:53 +0000 (17:47 +0900)
Change-Id: I0869a916f14dca3fb82f841b732d6f0ac460b533

src/bin/e_compositor.c

index 5c43227..5f9fc3e 100644 (file)
@@ -1363,6 +1363,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;