gstrtpsession: Don't unref pads in finalize
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>
Tue, 1 Jun 2010 23:51:34 +0000 (19:51 -0400)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 13 Sep 2010 10:10:11 +0000 (12:10 +0200)
The gstrtpsession object is not holding any reference to them directly

gst/rtpmanager/gstrtpsession.c

index c56ac6d..8e20773 100644 (file)
@@ -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);