[farsight2/master] Try to unref internal session only if its set
Olivier Crête
olivier.crete at collabora.co.uk
Wed Jun 10 07:38:51 PDT 2009
---
gst/fsrtpconference/fs-rtp-session.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index 8538687..4c8497c 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -475,7 +475,8 @@ fs_rtp_session_dispose (GObject *object)
conferencebin = GST_BIN (self->priv->conference);
- g_object_unref (self->priv->rtpbin_internal_session);
+ if (self->priv->rtpbin_internal_session)
+ g_object_unref (self->priv->rtpbin_internal_session);
self->priv->rtpbin_internal_session = NULL;
/* Lets stop all of the elements sink to source */
--
1.5.6.5
More information about the farsight-commits
mailing list