summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrepojohnray <repojohnray@users.noreply.github.com>2023-01-01 02:46:14 +0100
committersfan5 <sfan5@live.de>2023-01-24 15:56:56 +0100
commitfd279c9a2a7ab92d1540e9dd781a9d9bbe54b00a (patch)
tree500d50ca8384d287b175eba0f669a4e8751b760d
parentec2a9d433292de01527a3f286e25323cc76b0543 (diff)
downloadmpv-fd279c9a2a7ab92d1540e9dd781a9d9bbe54b00a.tar.bz2
mpv-fd279c9a2a7ab92d1540e9dd781a9d9bbe54b00a.tar.xz
hwdec_drmprime: fix memory leak
-rw-r--r--video/out/hwdec/hwdec_drmprime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/hwdec/hwdec_drmprime.c b/video/out/hwdec/hwdec_drmprime.c
index 1328e19162..b227c9de14 100644
--- a/video/out/hwdec/hwdec_drmprime.c
+++ b/video/out/hwdec/hwdec_drmprime.c
@@ -47,6 +47,7 @@ static void uninit(struct ra_hwdec *hw)
struct priv_owner *p = hw->priv;
if (p->hwctx.driver_name)
hwdec_devices_remove(hw->devs, &p->hwctx);
+ av_buffer_unref(&p->hwctx.av_device_ref);
}
const static dmabuf_interop_init interop_inits[] = {