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
This commit is contained in:
David Svensson Fors 2015-10-22 09:15:21 +02:00 committed by Sebastian Dröge
parent 6cc4f86e5d
commit 81ae320383

View file

@ -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: