mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
fe421d4dee
commit
2c2f25eb89
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue