1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

avcodec/mfenc: fix memory leak with D3D11 input surfaces

Fixes: d56522c6eb ("avcodec/mfenc: add support for D3D11 input surfaces")
Signed-off-by: Cameron Gutman <aicommander@gmail.com>
This commit is contained in:
Cameron Gutman
2025-08-10 16:11:55 -05:00
parent ae448e00af
commit b2910ec92e

View File

@@ -1366,6 +1366,9 @@ static int mf_close(AVCodecContext *avctx)
if (c->async_events)
IMFMediaEventGenerator_Release(c->async_events);
if (c->dxgiManager)
IMFDXGIDeviceManager_Release(c->dxgiManager);
#if !HAVE_UWP
if (c->library)
ff_free_mf(&c->functions, &c->mft);