winegstreamer: Fix a leak in gstdecoder_source_get_media_type().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-08-29 12:37:36 -05:00 committed by Alexandre Julliard
parent f4d66140ad
commit 0c34a2c97a
1 changed files with 1 additions and 0 deletions

View File

@ -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))