diff --git a/gst/sdp/gstsdpdemux.c b/gst/sdp/gstsdpdemux.c index 1f80fcc76f..6e176c0d2a 100644 --- a/gst/sdp/gstsdpdemux.c +++ b/gst/sdp/gstsdpdemux.c @@ -878,6 +878,7 @@ gst_sdp_demux_stream_configure_udp_sink (GstSDPDemux * demux, if (pad) { sinkpad = gst_element_get_static_pad (stream->udpsink, "sink"); gst_pad_link (pad, sinkpad); + gst_object_unref (pad); gst_object_unref (sinkpad); } else { /* not very fatal, we just won't be able to send RTCP */ diff --git a/sys/dvb/dvbbasebin.c b/sys/dvb/dvbbasebin.c index f02cda013d..af1c58efa6 100644 --- a/sys/dvb/dvbbasebin.c +++ b/sys/dvb/dvbbasebin.c @@ -751,6 +751,7 @@ dvb_base_bin_request_new_pad (GstElement * element, pad_name = gst_pad_get_name (pad); ghost = gst_ghost_pad_new (pad_name, pad); + gst_object_unref (pad); g_free (pad_name); gst_element_add_pad (element, ghost);