gstreamer/ext
Alex Ashley 58072914fa hlsdemux: fix memory leak in gst_hls_demux_get_next_fragment
This patch fixes three memory leaks in hlsdemux, one that occurs
during normal operation and two that occur during error conditions.

The gst_hls_demux_get_next_fragment function calls
gst_fragment_get_buffer which increments the reference count
on the buffer but gst_hls_demux_get_next_fragment never calls unref on
the buffer. This means that the reference count for each downloaded
fragment never gets to zero and so its memory is never released.

This patch adds a call to gst_buffer_unref after the flags have been
updated on the buffer.

There is a leak-on-error in gst_hls_demux_decrypt_fragment if it fails
to download the key file. If the key fails to download, null is
returned without doing an unref on the encrypted fragment. The
semantics of gst_hls_demux_decrypt_fragment is that it takes ownership
of the encrypted fragment and releases it before returning.

There is a leak-on-error in gst_hls_src_buf_to_utf8_playlist in the
unlikely event that the gst_buffer_map fails. In the "happy path"
operation of gst_hls_src_buf_to_utf8_playlist the buffer gets an unref
before the function returns, therefore the error condition must do the
same.

https://bugzilla.gnome.org/show_bug.cgi?id=710881
2013-10-25 23:12:25 -03:00
..
apexsink gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
assrender gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
audiofile gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
bz2 gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
cdaudio gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
chromaprint gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
curl curlsmtpsink: removed an incorrect assert 2013-06-11 21:08:28 +02:00
daala ext: Use new flush vfunc of video codec base classes and remove reset implementations 2013-08-15 15:46:58 +02:00
dash dashdemux: Improve if cause readability 2013-10-03 09:15:37 -03:00
dc1394 gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
directfb dfbvideosink: make "layer-mode" property an enum 2013-08-29 15:46:14 +01:00
dts gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
eglgles eglglessink: Port iOS part to 1.0 2013-09-28 20:36:21 +02:00
faac all: Fix for GST_DISABLE_GST_DEBUG 2013-07-29 09:42:12 +02:00
faad gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
flite flitetestsrc: audio format is "S16" not "s16" 2013-05-18 14:02:18 -07:00
fluidsynth gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
gme gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
gsettings gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
gsm gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
hls hlsdemux: fix memory leak in gst_hls_demux_get_next_fragment 2013-10-25 23:12:25 -03:00
kate kateenc: Delay segment event until we have caps 2013-05-15 10:12:09 +02:00
ladspa ladspa: initialize debug category earlier 2013-07-26 13:21:05 -07:00
libfame gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
libmms gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
lv2 gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
mimic mimic: Ensure segment is sent before caps and buffer 2013-05-15 19:30:40 -04:00
modplug modplug: Specify directory when including stdafx.h 2013-09-10 11:08:24 +02:00
mpeg2enc gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
mpg123 mpg123: Remove dead assignment 2013-07-27 06:39:15 +02:00
mplex gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
musepack gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
mythtv gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
nas gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
neon neonhttpsrc: add support for SCHEDULING query 2013-05-12 18:52:56 +01:00
ofa ofa: port to 1.0 2013-05-12 23:42:06 +01:00
openal openal: improved port to 1.0 2013-05-13 23:48:01 +01:00
opencv opencv: don't unref NULL caps in finalize 2013-09-29 23:43:23 +01:00
openjpeg openjpeg: Port OpenJPEG plugin to the 2.0 API 2013-10-02 20:07:16 +02:00
opus gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
resindvd all: Fix for GST_DISABLE_GST_DEBUG 2013-07-29 09:42:12 +02:00
rsvg ext: Use new flush vfunc of video codec base classes and remove reset implementations 2013-08-15 15:46:58 +02:00
rtmp gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
sbc gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
schroedinger ext: Use new flush vfunc of video codec base classes and remove reset implementations 2013-08-15 15:46:58 +02:00
sdl gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
smoothstreaming dash/smoothstreaming: Remove unused debug category with the same name 2013-09-19 20:09:59 +02:00
snapshot gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
sndfile gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
sndio Use gst_element_class_set_static_metadata() 2012-10-17 17:46:34 +01:00
soundtouch pitch: Fix inverted condition in setcaps 2013-10-12 16:04:25 -04:00
spandsp gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
spc gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
srtp srtpdec: fix buffers being dropped due to shadowed variable 2013-08-16 19:48:03 +01:00
teletextdec gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
timidity midi: Fix handling of the SEGMENT query 2013-07-29 12:17:57 +02:00
voaacenc gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
voamrwbenc gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
wayland all: Fix for GST_DISABLE_GST_DEBUG 2013-07-29 09:42:12 +02:00
webp webpdec: Some cleanup and minor fixes 2013-08-26 10:22:06 +02:00
xvid gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
zbar gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
Makefile.am webp: Add WebP image decoder plugin 2013-08-26 10:18:16 +02:00