From c20c0d044b0cfb3726dbdd7b529a35e3d54051f3 Mon Sep 17 00:00:00 2001 From: Joonbum Ko Date: Fri, 5 Feb 2021 15:34:07 +0900 Subject: [PATCH] Free the list vblank_waiting_buffers at surface_fini Change-Id: I92b9911097b88c10f6b951ab531dba7127efe5de Signed-off-by: Joonbum Ko --- src/tpl_wl_egl.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.34.1