From: Joonbum Ko Date: Wed, 17 Jun 2020 04:54:39 +0000 (+0900) Subject: Fixed missing close for open timeline fd. X-Git-Tag: submit/tizen/20200617.051453~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b79a476a4d7ace0849710bf4adc9fc9ce10799d0;p=platform%2Fcore%2Fuifw%2Flibtpl-egl.git Fixed missing close for open timeline fd. Change-Id: Ib0f009a12fec57968ea5f220426cada2497a4c34 Signed-off-by: Joonbum Ko --- diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index f347d46..1b12f4e 100755 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -2754,6 +2754,16 @@ _twe_thread_wl_surf_source_destroy(void *source) surf_source->surf = NULL; } + if (surf_source->commit_sync_timeline >= 0) { + close(surf_source->commit_sync_timeline); + surf_source->commit_sync_timeline = -1; + } + + if (surf_source->presentation_sync_timeline >= 0) { + close(surf_source->presentation_sync_timeline); + surf_source->presentation_sync_timeline = -1; + } + g_mutex_unlock(&surf_source->surf_mutex); g_mutex_clear(&surf_source->surf_mutex);