From: Joonbum Ko Date: Tue, 22 Dec 2020 04:25:37 +0000 (+0900) Subject: Add null checking to resolve dereference problem. X-Git-Tag: accepted/tizen/unified/20201228.130123~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F02%2F250202%2F2;p=platform%2Fcore%2Fuifw%2Flibtpl-egl.git Add null checking to resolve dereference problem. Change-Id: I847db94a26f97573489c39793401861d014e81c9 Signed-off-by: Joonbum Ko --- diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index c2712ff..0ea5cc4 100755 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -3139,7 +3139,7 @@ _twe_thread_wl_surf_source_destroy(void *source) twe_fence_wait_source *wait_source = __tpl_list_pop_front(surf_source->fence_waiting_sources, NULL); - if (!g_source_is_destroyed(&wait_source->gsource)) { + if (wait_source && !g_source_is_destroyed(&wait_source->gsource)) { tbm_surface_internal_unref(wait_source->tbm_surface); wait_source->tbm_surface = NULL;