[farsight2/master] rtpspecialsource: Dispose is not always called twice, cleanup in finalize
Olivier Crête
olivier.crete at collabora.co.uk
Thu Sep 10 14:33:49 PDT 2009
---
gst/fsrtpconference/fs-rtp-special-source.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-special-source.c b/gst/fsrtpconference/fs-rtp-special-source.c
index cdf25db..10c977f 100644
--- a/gst/fsrtpconference/fs-rtp-special-source.c
+++ b/gst/fsrtpconference/fs-rtp-special-source.c
@@ -234,6 +234,18 @@ fs_rtp_special_source_finalize (GObject *object)
{
FsRtpSpecialSource *self = FS_RTP_SPECIAL_SOURCE (object);
+ if (self->priv->rtpmuxer)
+ {
+ gst_object_unref (self->priv->rtpmuxer);
+ self->priv->rtpmuxer = NULL;
+ }
+
+ if (self->priv->outer_bin)
+ {
+ gst_object_unref (self->priv->outer_bin);
+ self->priv->outer_bin = NULL;
+ }
+
if (self->priv->mutex)
g_mutex_free (self->priv->mutex);
self->priv->mutex = NULL;
--
1.5.6.5
More information about the farsight-commits
mailing list