summaryrefslogtreecommitdiff
path: root/gst
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-22 19:28:15 +0300
commit81ae320383894892b4b4b53482a04c998441430d (patch)
treeabaa93844685304bed2abc0354c3e53f31ba5caf /gst
parent6cc4f86e5d2a06e16c5483270a770aeb43154ed1 (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
Diffstat (limited to 'gst')
-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 4e5f644..60442ad 100644
--- a/gst/rtsp-server/rtsp-stream.c
+++ b/gst/rtsp-server/rtsp-stream.c
@@ -2881,7 +2881,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);
@@ -2917,6 +2916,8 @@ update_transport (GstRTSPStream * stream, GstRTSPStreamTransport * trans,
}
}
+ gst_object_unref (bin);
+
/* fall through for the generic case */
}
case GST_RTSP_LOWER_TRANS_UDP: