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>
This commit is contained in:
Greg Wessels 2017-11-04 23:43:09 -05:00 committed by James Almer
parent fe421d4dee
commit 2c2f25eb89
1 changed files with 1 additions and 0 deletions

View File

@ -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)