summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorchen70 <chenchenfcj@163.com>2022-01-29 15:55:01 +0800
committersfan5 <sfan5@live.de>2023-01-24 15:56:56 +0100
commitb960de5fe31d40a119306284b7da5a7e30fbccb0 (patch)
tree5da759c4fe489e08ca294ab69824d948b2600a27 /video
parentc0fa12c958360a6c3bb3844b6b056f5219d51e5f (diff)
downloadmpv-b960de5fe31d40a119306284b7da5a7e30fbccb0.tar.bz2
mpv-b960de5fe31d40a119306284b7da5a7e30fbccb0.tar.xz
hwdec/d3d11va: fix a possible memory leak
Diffstat (limited to 'video')
-rw-r--r--video/out/d3d11/hwdec_d3d11va.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/d3d11/hwdec_d3d11va.c b/video/out/d3d11/hwdec_d3d11va.c
index 3006e5c7d0..9fc131ef40 100644
--- a/video/out/d3d11/hwdec_d3d11va.c
+++ b/video/out/d3d11/hwdec_d3d11va.c
@@ -67,6 +67,7 @@ static void uninit(struct ra_hwdec *hw)
{
struct priv_owner *p = hw->priv;
hwdec_devices_remove(hw->devs, &p->hwctx);
+ av_buffer_unref(&p->hwctx.av_device_ref);
SAFE_RELEASE(p->device);
SAFE_RELEASE(p->device1);
}