From 5d5eb47598e74f7d398d4150267aa44d33eafd91 Mon Sep 17 00:00:00 2001 From: vroad <396351+vroad@users.noreply.github.com> Date: Sun, 25 Apr 2021 11:43:07 +0900 Subject: [PATCH] [client] egl: do not leak fence when using DMABUF --- client/renderers/EGL/texture.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/renderers/EGL/texture.c b/client/renderers/EGL/texture.c index c7cbef91..c714d5bb 100644 --- a/client/renderers/EGL/texture.c +++ b/client/renderers/EGL/texture.c @@ -479,6 +479,7 @@ bool egl_texture_update_from_dma(EGL_Texture * texture, const FrameBuffer * fram DEBUG_EGL_ERROR("glClientWaitSync failed"); } + glDeleteSync(fence); atomic_fetch_add_explicit(&texture->state.w, 1, memory_order_release); return true; }