GNOME Bugzilla – Bug 496983
[PATCH] rtspsrc leaks pads
Last modified: 2007-11-15 17:35:19 UTC
RTSP source element leaks pads in following situations: 1. Channel pads: when using TCP transport and gst_rtspsrc_stream_free() is called. This happens because stream->channelpad[i] is unref'ed only if stream->udpsrc[i] != NULL. In TCP transport this is false. 2. rtcppad is created in gst_rtspsrc_stream_configure_tcp() and gst_rtspsrc_stream_configure_udp_sink() functions, but never unref'ed. 3. In gst_rtspsrc_stream_configure_tcp() a "template" GstPadTemplate is created (if (src->session)), but it is not unref'ed. Attached patch fixes these leaks.
Created attachment 99129 [details] [review] Patch to rtspsrc.c that fixes three pad leaks
Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com> * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_stream_free), (gst_rtspsrc_stream_configure_tcp): Fix 3 pad leaks. Fixes #496983.