gstadaptivedemux: fix memory leak

GstQuery leaks when using invalid url

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5156>
This commit is contained in:
Wang Chuan 2023-08-07 14:18:21 +08:00 committed by GStreamer Marge Bot
parent 1d7f2c2b9a
commit 19a0463903

View file

@ -960,6 +960,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;
}