compositor: Fix crash when accessing null pointer 66/296366/1
authorSeunghun Lee <shiin.lee@samsung.com>
Wed, 26 Jul 2023 06:36:04 +0000 (15:36 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 26 Jul 2023 07:02:10 +0000 (16:02 +0900)
commite55bc1451864a1a682d74b801b5d7e4a6ee63f36
treebfc5b5f4580ae7d9cb486163916bbc97659e66d7
parentd547dfac1f0f5501cd3f76532d6a18a4904ed869
compositor: Fix crash when accessing null pointer

This patch adds a null check before accessing the return value of
ds_subsurface_from_surface().

The return value of ds_subsurface_from_surface() can be null even though
the ds_surface_is_subsurface() returns true. That's the case when the
subsurface has been destroyed.

Change-Id: I40fd3910cd980d31823e8ba8fe3f4210fc52b515
src/bin/e_compositor.c