From 306ee454c6f206810b234129c7f0fa73753ac96a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Tue, 1 Jun 2010 19:51:34 -0400 Subject: [PATCH] gstrtpsession: Don't unref pads in finalize The gstrtpsession object is not holding any reference to them directly --- gst/rtpmanager/gstrtpsession.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gst/rtpmanager/gstrtpsession.c b/gst/rtpmanager/gstrtpsession.c index c56ac6d..8e20773 100644 --- a/gst/rtpmanager/gstrtpsession.c +++ b/gst/rtpmanager/gstrtpsession.c @@ -639,15 +639,6 @@ gst_rtp_session_finalize (GObject * object) rtpsession = GST_RTP_SESSION (object); - if (rtpsession->recv_rtp_sink != NULL) - gst_object_unref (rtpsession->recv_rtp_sink); - if (rtpsession->recv_rtcp_sink != NULL) - gst_object_unref (rtpsession->recv_rtcp_sink); - if (rtpsession->send_rtp_sink != NULL) - gst_object_unref (rtpsession->send_rtp_sink); - if (rtpsession->send_rtcp_src != NULL) - gst_object_unref (rtpsession->send_rtcp_src); - g_hash_table_destroy (rtpsession->priv->ptmap); g_mutex_free (rtpsession->priv->lock); g_object_unref (rtpsession->priv->sysclock); -- 2.7.4