Browse Source

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>
tags/n4.0
Greg Wessels James Almer 7 years ago
parent
commit
2c2f25eb89
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavutil/hwcontext_d3d11va.c

+ 1
- 0
libavutil/hwcontext_d3d11va.c 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)


Loading…
Cancel
Save