[farsight2/master] Unref participant and stream transmitters on FsRtpStream dispose
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:19:12 PST 2008
---
gst/fsrtpconference/fs-rtp-stream.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-stream.c b/gst/fsrtpconference/fs-rtp-stream.c
index 590ed88..97bb35c 100644
--- a/gst/fsrtpconference/fs-rtp-stream.c
+++ b/gst/fsrtpconference/fs-rtp-stream.c
@@ -223,6 +223,16 @@ fs_rtp_stream_dispose (GObject *object)
return;
}
+ if (self->priv->participant) {
+ g_object_unref (self->priv->participant);
+ self->priv->participant = NULL;
+ }
+
+ if (self->priv->stream_transmitter) {
+ g_object_unref (self->priv->stream_transmitter);
+ self->priv->stream_transmitter = NULL;
+ }
+
/* Make sure dispose does not run twice. */
self->priv->disposed = TRUE;
--
1.5.6.5
More information about the farsight-commits
mailing list