summaryrefslogtreecommitdiffstats
path: root/libavutil/hwcontext_d3d11va.c
diff options
context:
space:
mode:
authorGreg Wessels <wesselsga@gmail.com>2017-11-04 23:43:09 -0500
committerJames Almer <jamrial@gmail.com>2017-11-07 22:56:43 -0300
commit2c2f25eb8920129ef3cfe6da2e1cefdedc485965 (patch)
tree402a4cc522e817d8bb7521b55d35211c9132828e /libavutil/hwcontext_d3d11va.c
parentfe421d4deecd12e498e6f07b3fb6f83212c007b2 (diff)
downloadffmpeg-streaming-2c2f25eb8920129ef3cfe6da2e1cefdedc485965.zip
ffmpeg-streaming-2c2f25eb8920129ef3cfe6da2e1cefdedc485965.tar.gz
avutil/hwcontext_d3d11va: Fix leak when wrapping texture in AVD3D11FrameDescriptor
Reviewed-by: Aaron Levinson <alevinsn_dev@levland.net> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/hwcontext_d3d11va.c')
-rw-r--r--libavutil/hwcontext_d3d11va.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/hwcontext_d3d11va.c b/libavutil/hwcontext_d3d11va.c
index 52683b9..65dd665 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)
OpenPOWER on IntegriCloud