From 06cea2dacfe3c3dd97482d3c89c7ab03e3b48cef Mon Sep 17 00:00:00 2001 From: "joonbum.ko" Date: Fri, 1 Sep 2017 11:06:18 +0900 Subject: [PATCH] tpl_wayland_egl_thread: Added object lock/unlock at the time of in_use_buffer list finalizing. Change-Id: I9e6d3ae6fea8df6caa4fc2ffba7d7ce348408d2c Signed-off-by: joonbum.ko --- src/tpl_wayland_egl_thread.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index 5cbe4c8..d0f9bb2 100644 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -1679,7 +1679,10 @@ twe_surface_del(twe_surface_h twe_surface) sched_yield(); } + TPL_OBJECT_LOCK(&surf_source->obj); __tpl_list_free(surf_source->in_use_buffers, NULL); + TPL_OBJECT_UNLOCK(&surf_source->obj); + surf_source->in_use_buffers = NULL; TPL_OBJECT_LOCK(&disp_source->obj); -- 2.7.4