From 93d21a0d1d02f3b74cd6c9fa9141b4a9dfb7eb22 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 6 Feb 2021 17:59:05 -0600 Subject: [PATCH] Fix EGLImage leak when not using a hwaccel backend --- app/streaming/video/ffmpeg-renderers/eglvid.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/streaming/video/ffmpeg-renderers/eglvid.cpp b/app/streaming/video/ffmpeg-renderers/eglvid.cpp index ce9607d8..a30b29ef 100644 --- a/app/streaming/video/ffmpeg-renderers/eglvid.cpp +++ b/app/streaming/video/ffmpeg-renderers/eglvid.cpp @@ -792,6 +792,5 @@ void EGLRenderer::renderFrame(AVFrame* frame) glFinish(); } - if (frame->hw_frames_ctx != nullptr) - m_Backend->freeEGLImages(m_EGLDisplay, imgs); + m_Backend->freeEGLImages(m_EGLDisplay, imgs); }