gstadaptivedemux: fix memory leak

GstQuery leaks when using invalid url

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5154>
This commit is contained in:
Wang Chuan 2023-08-07 14:18:21 +08:00
parent 8b5833c546
commit e89a64cd1f

View file

@ -986,6 +986,7 @@ handle_incoming_manifest (GstAdaptiveDemux * demux)
GST_ELEMENT_ERROR (demux, STREAM, DEMUX,
(_("Invalid manifest URI")),
("Manifest URI needs to use either data:, http:// or https://"));
gst_query_unref (query);
ret = FALSE;
goto unlock_out;
}