Commit 2c2f25eb authored by Greg Wessels's avatar Greg Wessels Committed by James Almer

avutil/hwcontext_d3d11va: Fix leak when wrapping texture in AVD3D11FrameDescriptor

Reviewed-by: 's avatarAaron Levinson <alevinsn_dev@levland.net>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent fe421d4d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment