From: joonbum.ko Date: Fri, 1 Sep 2017 01:13:10 +0000 (+0900) Subject: tpl_wayland_egl_thread: Added exception checking. X-Git-Tag: accepted/tizen/4.0/unified/20170907.193730~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8bc32022c59f0d7ea323b934c087816860fe687a;p=platform%2Fcore%2Fuifw%2Flibtpl-egl.git tpl_wayland_egl_thread: Added exception checking. - Added an exception checking to prevent to access destroyed gsource. Change-Id: I7ba78f28c03d836f27132d9f1e16095d4313ca41 Signed-off-by: joonbum.ko --- diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index 4567f5a..5cbe4c8 100644 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -1209,6 +1209,11 @@ __cb_tdm_client_wait_vblank(tdm_client_vblank *vblank, tdm_error error, return; } + if (g_source_is_destroyed(&surf_source->gsource)) { + TPL_WARN("surf_source already destroyed."); + return; + } + surf_source->vblank_done = TPL_TRUE; _twe_thread_wl_surface_acquire_and_commit(surf_source); }