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: Connor McAdams <cmcadams@codeweavers.com> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7dc454be85
commit
77a145856a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue