Fix EGLImage leak when not using a hwaccel backend

This commit is contained in:
Cameron Gutman committed 2021-02-06 17:59:05 -06:00
1 parent 2c2a73e320
commit 93d21a0d1d
1 file changed
+1 -2
@@ -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);
}