From 2e9c43f9318d416fc26f20aa55841ee7fcfeee4a Mon Sep 17 00:00:00 2001 From: repojohnray Date: Sun, 1 Jan 2023 02:46:14 +0100 Subject: [PATCH] hwdec_drmprime: fix memory leak --- video/out/hwdec/hwdec_drmprime.c | 1 + 1 file changed, 1 insertion(+) diff --git a/video/out/hwdec/hwdec_drmprime.c b/video/out/hwdec/hwdec_drmprime.c index fd21de24fe..e78857ce21 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[] = {