summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gst/sdp/gstsdpdemux.c1
-rw-r--r--sys/dvb/dvbbasebin.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/gst/sdp/gstsdpdemux.c b/gst/sdp/gstsdpdemux.c
index 1f80fcc76..6e176c0d2 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 f02cda013..af1c58efa 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);