diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2015-01-14 16:42:25 +0000 |
---|---|---|
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2015-01-16 16:15:11 +0000 |
commit | 14b75920f55ee82222290b15e6ab47f8b6c6c446 (patch) | |
tree | 41011a33c68850d384c072215217647dcb6c0b03 | |
parent | d4703fa8806cf7d9cc778fb43370daebb37e70cd (diff) | |
download | gstreamer-plugins-bad-14b75920f55ee82222290b15e6ab47f8b6c6c446.tar.gz |
hlsdemux: a few leak fixes
-rw-r--r-- | ext/hls/gsthlsdemux.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index b11d07edb..ff07a44bf 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -1537,10 +1537,12 @@ 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_object_unref (download); return FALSE; } @@ -1555,6 +1557,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; } @@ -1586,6 +1589,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) { |