summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Svensson Fors <davidsf@axis.com>2015-10-22 09:15:21 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-10-23 16:43:09 +0300
commitc70698bcad55f0199f9616ac869168d3523cd6c7 (patch)
tree17114ccac228ffa139dc166d49ebf74c84895398
parentc9ba9d691189773deaea3942932d9ce75d9fa631 (diff)
rtsp-stream: Always unref return value of gst_object_get_parent()
Fixes a leak of a GstBin in the udp-mcast case. https://bugzilla.gnome.org/show_bug.cgi?id=756968
-rw-r--r--gst/rtsp-server/rtsp-stream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/rtsp-server/rtsp-stream.c b/gst/rtsp-server/rtsp-stream.c
index 4417c43..1c4366e 100644
--- a/gst/rtsp-server/rtsp-stream.c
+++ b/gst/rtsp-server/rtsp-stream.c
@@ -2843,7 +2843,6 @@ update_transport (GstRTSPStream * stream, GstRTSPStreamTransport * trans,
gst_object_unref (pad);
gst_object_unref (selpad);
}
- gst_object_unref (bin);
priv->transport_sources =
g_list_prepend (priv->transport_sources, source);
@@ -2879,6 +2878,8 @@ update_transport (GstRTSPStream * stream, GstRTSPStreamTransport * trans,
}
}
+ gst_object_unref (bin);
+
/* fall through for the generic case */
}
case GST_RTSP_LOWER_TRANS_UDP: