From: Sung-Jin Park Date: Wed, 9 Jun 2021 04:16:51 +0000 (+0900) Subject: shell: add checking hs_surface before accessing it X-Git-Tag: accepted/tizen/unified/20211129.092905~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b6e55b7df0ed9fc2fa5b8eea43c6a244806ce7dc;p=platform%2Fcore%2Fuifw%2Fheadless-server.git shell: add checking hs_surface before accessing it Change-Id: I160d6e85dd1f107ca1295dedc727e57b6986f4bb Signed-off-by: Sung-Jin Park --- diff --git a/src/shell/shell.c b/src/shell/shell.c index 75e5ddc..15ad31b 100644 --- a/src/shell/shell.c +++ b/src/shell/shell.c @@ -1195,6 +1195,7 @@ headless_shell_cb_surface_remove(pepper_event_listener_t *listener, pepper_surface_t *surface = (pepper_surface_t *)info; hs_surface = pepper_object_get_user_data((pepper_object_t *)surface, pepper_surface_get_resource(surface)); + PEPPER_CHECK(hs_surface, return, "[SHELL] cb_surface_remove, Invalid object headless_surface:%p\n", hs_surface); PEPPER_TRACE("[SHELL] surface_remove: pepper_surface:%p, headless_shell:%p\n", object, hs_surface); if (hs_surface->zxdg_surface) {