mfmediaengine: Fix a memory leak.

Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Giovanni Mascellani 2022-01-18 15:16:03 +01:00 committed by Alexandre Julliard
parent 54185c9c16
commit 792546f612
1 changed files with 2 additions and 0 deletions

View File

@ -1094,6 +1094,8 @@ static HRESULT media_engine_create_topology(struct media_engine *engine, IMFMedi
IMFMediaTypeHandler_Release(type_handler);
}
IMFStreamDescriptor_Release(sd);
}
if (!sd_video && !sd_audio)