+2007-11-15 Wim Taymans <wim.taymans@gmail.com>
+
+ 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.
+
2007-11-15 Wim Taymans <wim.taymans@gmail.com>
Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com>
pad = gst_element_get_pad (udpsrc, "src");
if (stream->channelpad[i]) {
gst_pad_unlink (pad, stream->channelpad[i]);
- gst_object_unref (stream->channelpad[i]);
- stream->channelpad[i] = NULL;
}
gst_element_set_state (udpsrc, GST_STATE_NULL);
gst_object_unref (stream->udpsrc[i]);
stream->udpsrc[i] = NULL;
}
+ if (stream->channelpad[i]) {
+ gst_object_unref (stream->channelpad[i]);
+ stream->channelpad[i] = NULL;
+ }
}
if (stream->udpsink) {
gst_element_set_state (stream->udpsink, GST_STATE_NULL);
}
stream->srcpad = NULL;
}
+ if (stream->rtcppad) {
+ gst_object_unref (stream->rtcppad);
+ stream->rtcppad = NULL;
+ }
g_free (stream);
}
/* and link */
if (pad)
gst_pad_link (pad, stream->rtcppad);
+
+ gst_object_unref (template);
}
return TRUE;
}