Commit d8519941 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

dxva2_deinterlace: fix potential double free when there are errors

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent f63a7695
......@@ -351,10 +351,6 @@ static int Open(vlc_object_t *obj)
if (FAILED(hr))
goto error;
CoTaskMemFree(processorGUIDs);
picture_Release(dst);
IDirectXVideoProcessorService_Release(processor);
sys->hdecoder_dll = hdecoder_dll;
sys->d3d9_dll = d3d9_dll;
sys->decoder_caps = best_caps;
......@@ -378,6 +374,10 @@ static int Open(vlc_object_t *obj)
goto error;
}
CoTaskMemFree(processorGUIDs);
IDirectXVideoProcessorService_Release(processor);
picture_Release(dst);
filter->fmt_out.video = out_fmt;
filter->pf_video_filter = Deinterlace;
filter->pf_flush = Flush;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment