mirror of https://github.com/mpv-player/mpv
hwdec_drmprime: fix memory leak
This commit is contained in:
parent
39f7f83351
commit
2e9c43f931
|
@ -47,6 +47,7 @@ static void uninit(struct ra_hwdec *hw)
|
||||||
struct priv_owner *p = hw->priv;
|
struct priv_owner *p = hw->priv;
|
||||||
if (p->hwctx.driver_name)
|
if (p->hwctx.driver_name)
|
||||||
hwdec_devices_remove(hw->devs, &p->hwctx);
|
hwdec_devices_remove(hw->devs, &p->hwctx);
|
||||||
|
av_buffer_unref(&p->hwctx.av_device_ref);
|
||||||
}
|
}
|
||||||
|
|
||||||
const static dmabuf_interop_init interop_inits[] = {
|
const static dmabuf_interop_init interop_inits[] = {
|
||||||
|
|
Loading…
Reference in New Issue