[farsight2/master] Properly unref stuff in FsRtpDtmfEventSource
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:21:31 PST 2008
---
gst/fsrtpconference/fs-rtp-dtmf-event-source.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-dtmf-event-source.c b/gst/fsrtpconference/fs-rtp-dtmf-event-source.c
index 84643bf..53d8ff5 100644
--- a/gst/fsrtpconference/fs-rtp-dtmf-event-source.c
+++ b/gst/fsrtpconference/fs-rtp-dtmf-event-source.c
@@ -135,6 +135,18 @@ fs_rtp_dtmf_event_source_dispose (GObject *object)
if (self->priv->disposed)
return;
+ if (self->priv->rtpmuxer)
+ {
+ gst_object_unref (self->priv->rtpmuxer);
+ self->priv->rtpmuxer = NULL;
+ }
+
+ if (self->priv->bin)
+ {
+ gst_object_unref (self->priv->bin);
+ self->priv->bin = NULL;
+ }
+
self->priv->disposed = TRUE;
G_OBJECT_CLASS (fs_rtp_dtmf_event_source_parent_class)->dispose (object);
}
--
1.5.6.5
More information about the farsight-commits
mailing list