Free the list vblank_waiting_buffers at surface_fini 88/254788/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Fri, 5 Feb 2021 06:34:07 +0000 (15:34 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Tue, 9 Mar 2021 08:52:30 +0000 (17:52 +0900)
Change-Id: I92b9911097b88c10f6b951ab531dba7127efe5de
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_wl_egl.c

index aa54c77..c6b47f1 100644 (file)
@@ -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);