Fixed missing close for open timeline fd. 26/236426/2
authorJoonbum Ko <joonbum.ko@samsung.com>
Wed, 17 Jun 2020 04:54:39 +0000 (13:54 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Wed, 17 Jun 2020 04:55:27 +0000 (13:55 +0900)
Change-Id: Ib0f009a12fec57968ea5f220426cada2497a4c34
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_wayland_egl_thread.c

index f347d46..1b12f4e 100755 (executable)
@@ -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);