mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-16 22:40:53 +08:00
hwdec/d3d11va: fix a possible memory leak
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user