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:
parent
f4d66140ad
commit
0c34a2c97a
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue