Module: wine Branch: master Commit: 77a145856a3020cff581939b35e1d7246eb7486d URL: https://source.winehq.org/git/wine.git/?a=commit;h=77a145856a3020cff581939b3...
Author: Connor McAdams cmcadams@codeweavers.com Date: Wed Apr 21 10:20:06 2021 -0400
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
---
dlls/mfplat/mediatype.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/mfplat/mediatype.c b/dlls/mfplat/mediatype.c index 4904dbb566f..60b86aa40b6 100644 --- a/dlls/mfplat/mediatype.c +++ b/dlls/mfplat/mediatype.c @@ -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); }