Add mutex lock/unlock before when clear mutex. 93/254793/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Thu, 4 Mar 2021 01:36:02 +0000 (10:36 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Tue, 9 Mar 2021 08:53:16 +0000 (17:53 +0900)
Change-Id: Ibeed901734d50be64fce2843ee93982e4071a5cf
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_wl_egl.c

index 36310eb..5d7b669 100644 (file)
@@ -1950,6 +1950,8 @@ __tpl_wl_egl_surface_fini(tpl_surface_t *surface)
        tpl_gmutex_unlock(&wl_egl_surface->presentation_sync.mutex);
        tpl_gmutex_clear(&wl_egl_surface->presentation_sync.mutex);
 
+       tpl_gmutex_lock(&wl_egl_surface->surf_mutex);
+       tpl_gmutex_unlock(&wl_egl_surface->surf_mutex);
        tpl_gmutex_clear(&wl_egl_surface->surf_mutex);
        tpl_gcond_clear(&wl_egl_surface->surf_cond);