hwdec/d3d11va: fix a possible memory leak

This commit is contained in:
chen70 authored and sfan5 committed 2022-12-21 19:03:38 +01:00
1 parent 27dab30209
commit 3447463008
1 file changed
+1
+1
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);
}