mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
hlsdemux: a few leak fixes
This commit is contained in:
parent
b533ad8502
commit
b5860af143
1 changed files with 4 additions and 0 deletions
|
@ -932,11 +932,13 @@ retry:
|
|||
|
||||
buf = gst_fragment_get_buffer (download);
|
||||
playlist = gst_hls_src_buf_to_utf8_playlist (buf);
|
||||
gst_buffer_unref (buf);
|
||||
|
||||
if (playlist == NULL) {
|
||||
GST_WARNING_OBJECT (demux,
|
||||
"Failed to validate variant playlist encoding");
|
||||
g_free (uri);
|
||||
g_object_unref (download);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -952,6 +954,7 @@ retry:
|
|||
if (!gst_m3u8_client_update_variant_playlist (demux->client, playlist,
|
||||
uri, base_uri)) {
|
||||
GST_WARNING_OBJECT (demux, "Failed to update the variant playlist");
|
||||
g_object_unref (download);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -986,6 +989,7 @@ retry:
|
|||
|
||||
buf = gst_fragment_get_buffer (download);
|
||||
playlist = gst_hls_src_buf_to_utf8_playlist (buf);
|
||||
gst_buffer_unref (buf);
|
||||
g_object_unref (download);
|
||||
|
||||
if (playlist == NULL) {
|
||||
|
|
Loading…
Reference in a new issue