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[] = {