From 2c2f25eb8920129ef3cfe6da2e1cefdedc485965 Mon Sep 17 00:00:00 2001 From: Greg Wessels Date: Sat, 4 Nov 2017 23:43:09 -0500 Subject: [PATCH] avutil/hwcontext_d3d11va: Fix leak when wrapping texture in AVD3D11FrameDescriptor Reviewed-by: Aaron Levinson Signed-off-by: James Almer --- libavutil/hwcontext_d3d11va.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavutil/hwcontext_d3d11va.c b/libavutil/hwcontext_d3d11va.c index 52683b92cd..65dd6651fc 100644 --- a/libavutil/hwcontext_d3d11va.c +++ b/libavutil/hwcontext_d3d11va.c @@ -123,6 +123,7 @@ static void d3d11va_frames_uninit(AVHWFramesContext *ctx) static void free_texture(void *opaque, uint8_t *data) { ID3D11Texture2D_Release((ID3D11Texture2D *)opaque); + av_free(data); } static AVBufferRef *wrap_texture_buf(ID3D11Texture2D *tex, int index)