• Célestin Marot's avatar
    multifilesrc: fix caps leak · f2638a48
    Célestin Marot authored and Tim-Philipp Müller's avatar Tim-Philipp Müller committed
    since `gst_caps_replace()` and `gst_pad_set_caps()` both ref the caps and neither of them takes the ownership of the caps -> it must be unreffed in `gst_multi_file_src_set_property()`
    
    to test the leak (on Unix): `echo coucou > /tmp/file.txt && GST_TRACERS=leaks GST_DEBUG="GST_TRACER:7" gst-launch-1.0 multifilesrc location=/tmp/file.txt caps='txt' ! fakesink`
    
    Part-of: <gstreamer/gst-plugins-good!1109>
    f2638a48