GNOME Bugzilla – Bug 747611
inputselector: fix leak in gst_selector_pad_chain()
Last modified: 2015-04-10 12:36:11 UTC
.
Created attachment 301265 [details] [review] inputselector: fix cached buffer leak in chain function gst_selector_pad_chain() was popping cached buffers out of the queue without freeing those. Make sure we don't steal the GstBuffer as the cached buffer ref has been passed to the pad chain function. This can be reproduced by running the validate.file.playback.switch_subtitle_track_while_paused.test5_mkv scenario with Valgrind. https://bugzilla.gnome.org/show_bug.cgi?id=747611 Signed-off-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Review of attachment 301265 [details] [review]: Thanks for the patch, pushed. commit b15e6f4bf018b92952bfecf9a94c2cbceb6e29ea Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Date: Fri Apr 10 12:32:27 2015 +0200 inputselector: fix cached buffer leak in chain function gst_selector_pad_chain() was popping cached buffers out of the queue without freeing those. Make sure we don't steal the GstBuffer as the cached buffer ref has been passed to the pad chain function. This can be reproduced by running the validate.file.playback.switch_subtitle_track_while_paused.test5_mkv scenario with Valgrind. https://bugzilla.gnome.org/show_bug.cgi?id=747611 Signed-off-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>