multifilesink: don't leak memory when no max-files limit is set
authorUrsula Maplehurst <ursula@kangatronix.co.uk>
Sun, 29 May 2016 16:21:47 +0000 (17:21 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 31 Dec 2016 09:58:28 +0000 (09:58 +0000)
commita10c1cc060648fd3ac6ab47d241f54eafc756248
tree33d32575edd6a5f23b1f8a9407f82dbe1a4092fc
parente6a251e9c05e739a287231a223dc81f50f2c7066
multifilesink: don't leak memory when no max-files limit is set

Technically we weren't leaking the memory, just storing it internally
and never using it until the element is freed. But we'd still use more
and more memory over time, so this is not good over longer periods
of time. Only keep track of files if there's actually a limit set,
so that we will prune the list from time to time.

https://bugzilla.gnome.org/show_bug.cgi?id=766991
gst/multifile/gstmultifilesink.c