hwdec/d3d11va: fix a possible memory leak

This commit is contained in:
chen70 2022-01-29 15:55:01 +08:00 committed by sfan5
parent 27dab30209
commit 3447463008
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}