Connor McAdams : mfplat: Free video_format pointer on final MediaType Release.
Alexandre Julliard
julliard at winehq.org
Wed Apr 21 15:57:54 CDT 2021
Module: wine
Branch: master
Commit: 77a145856a3020cff581939b35e1d7246eb7486d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=77a145856a3020cff581939b35e1d7246eb7486d
Author: Connor McAdams <cmcadams at 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 at codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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);
}
More information about the wine-cvs
mailing list