[farsight2/master] Don't leak request pads
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:23:04 PST 2008
---
gst/fsrtpconference/fs-rtp-session.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index a42a8f2..af98c1d 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -417,6 +417,19 @@ fs_rtp_session_dispose (GObject *object)
fs_rtp_session_stop_codec_param_gathering (self);
+
+ if (self->priv->send_tee_discovery_pad)
+ {
+ gst_object_unref (self->priv->send_tee_discovery_pad);
+ self->priv->send_tee_discovery_pad = NULL;
+ }
+
+ if (self->priv->send_tee_media_pad)
+ {
+ gst_object_unref (self->priv->send_tee_media_pad);
+ self->priv->send_tee_media_pad = NULL;
+ }
+
stop_and_remove (conferencebin, &self->priv->rtpmuxer, TRUE);
stop_and_remove (conferencebin, &self->priv->send_capsfilter, TRUE);
stop_and_remove (conferencebin, &self->priv->send_codecbin, FALSE);
@@ -494,8 +507,6 @@ fs_rtp_session_dispose (GObject *object)
self->priv->rtpbin_recv_rtcp_sink = NULL;
}
-
-
if (self->priv->transmitters)
{
g_hash_table_foreach_remove (self->priv->transmitters, _remove_transmitter,
--
1.5.6.5
More information about the farsight-commits
mailing list