From 0c34a2c97a9e21847eb965ef869e345be7503266 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Sat, 29 Aug 2020 12:37:36 -0500 Subject: [PATCH] winegstreamer: Fix a leak in gstdecoder_source_get_media_type(). Signed-off-by: Zebediah Figura Signed-off-by: Alexandre Julliard --- dlls/winegstreamer/gstdemux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c index e8f65a0e6ed..2c9aafd7a6b 100644 --- a/dlls/winegstreamer/gstdemux.c +++ b/dlls/winegstreamer/gstdemux.c @@ -1713,6 +1713,7 @@ static HRESULT gstdecoder_source_get_media_type(struct gstdemux_source *pin, gst_caps_unref(caps); return S_OK; } + FreeMediaType(mt); } if (!strcmp(type, "video/x-raw") && index < ARRAY_SIZE(video_formats))