Module: wine Branch: master Commit: 5db72186206a5fb6a480a16438a3436566be2981 URL: https://gitlab.winehq.org/wine/wine/-/commit/5db72186206a5fb6a480a16438a3436...
Author: Rémi Bernon rbernon@codeweavers.com Date: Sun Sep 4 23:43:36 2022 +0200
winegstreamer: Avoid leaking attributes on video processor creation failure.
---
dlls/winegstreamer/video_processor.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dlls/winegstreamer/video_processor.c b/dlls/winegstreamer/video_processor.c index 4094ecd2bdd..b513b1e52b5 100644 --- a/dlls/winegstreamer/video_processor.c +++ b/dlls/winegstreamer/video_processor.c @@ -667,6 +667,10 @@ HRESULT video_processor_create(REFIID riid, void **ret) return S_OK;
failed: + if (impl->output_attributes) + IMFAttributes_Release(impl->output_attributes); + if (impl->attributes) + IMFAttributes_Release(impl->attributes); free(impl); return hr; }