mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
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:
parent
6cc4f86e5d
commit
81ae320383
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue