Commit 5db72186 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winegstreamer: Avoid leaking attributes on video processor creation failure.

parent ddf7026d
...@@ -667,6 +667,10 @@ HRESULT video_processor_create(REFIID riid, void **ret) ...@@ -667,6 +667,10 @@ HRESULT video_processor_create(REFIID riid, void **ret)
return S_OK; return S_OK;
failed: failed:
if (impl->output_attributes)
IMFAttributes_Release(impl->output_attributes);
if (impl->attributes)
IMFAttributes_Release(impl->attributes);
free(impl); free(impl);
return hr; return hr;
} }
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