Commit 77a14585 authored by Connor McAdams's avatar Connor McAdams Committed by Alexandre Julliard

mfplat: Free video_format pointer on final MediaType Release.

Make sure that the MFVIDEOFORMAT pointer is freed when the final IMFVideoMediaType interface is released. Signed-off-by: 's avatarConnor McAdams <cmcadams@codeweavers.com> Signed-off-by: 's avatarNikolay Sivov <nsivov@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 7dc454be
......@@ -154,6 +154,7 @@ static ULONG WINAPI mediatype_Release(IMFMediaType *iface)
if (!refcount)
{
clear_attributes_object(&media_type->attributes);
CoTaskMemFree(media_type->video_format);
heap_free(media_type);
}
......
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