GNOME Bugzilla – Bug 738674
rtmpsink: leaking URI string
Last modified: 2014-10-25 12:13:55 UTC
Created attachment 288733 [details] [review] patch Test to reproduce: GST_START_TEST(confdemo_rtmp) { GstHarness * h = gst_harness_new_parse ( "rtmpsink location=\"rtmp://localhost/pexip/live live=1\""); gst_harness_teardown (h); } GST_END_TEST;
Review of attachment 288733 [details] [review]: Looks good, thanks for report.
Comment on attachment 288733 [details] [review] patch Nope it's not as mentioned during collective reviewing during your talk ;) You need to free/NULL the URI in finalize() as it's from a property... otherwise the element would forget its URI when you set it back to NULL state. That's unexpected and invalid behaviour.
Created attachment 288860 [details] [review] patch I agree, new patch attached :)
commit a1e948cddd718f35264f8906046d7286bdc38703 Author: Havard Graff <havard.graff@gmail.com> Date: Sun Oct 19 20:35:41 2014 +0200 rtmpsink: Free URI string in finalize() https://bugzilla.gnome.org/show_bug.cgi?id=738674