[PATCH v2 3/4] mfplat: Free video_format pointer on final MediaType Release.

Connor McAdams cmcadams at codeweavers.com
Wed Apr 21 09:20:06 CDT 2021


Make sure that the MFVIDEOFORMAT pointer is freed when the final
IMFVideoMediaType interface is released.

Signed-off-by: Connor McAdams <cmcadams at codeweavers.com>
---
 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);
     }
 
-- 
2.25.1




More information about the wine-devel mailing list