From: Joonbum Ko Date: Fri, 5 Feb 2021 06:34:07 +0000 (+0900) Subject: Free the list vblank_waiting_buffers at surface_fini X-Git-Tag: submit/tizen/20210316.021228~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c20c0d044b0cfb3726dbdd7b529a35e3d54051f3;p=platform%2Fcore%2Fuifw%2Flibtpl-egl.git Free the list vblank_waiting_buffers at surface_fini Change-Id: I92b9911097b88c10f6b951ab531dba7127efe5de Signed-off-by: Joonbum Ko --- diff --git a/src/tpl_wl_egl.c b/src/tpl_wl_egl.c index aa54c77..c6b47f1 100644 --- a/src/tpl_wl_egl.c +++ b/src/tpl_wl_egl.c @@ -1404,6 +1404,11 @@ _thread_wl_egl_surface_fini(tpl_wl_egl_surface_t *wl_egl_surface) wl_egl_surface->presentation_sync.fd = -1; } + if (wl_egl_surface->vblank_waiting_buffers) { + __tpl_list_free(wl_egl_surface->vblank_waiting_buffers, NULL); + wl_egl_surface->vblank_waiting_buffers = NULL; + } + tpl_gmutex_unlock(&wl_egl_surface->presentation_sync.mutex);