mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
rtspsrc: avoid leak
When setup fails, make sure to cleanup afterwards. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=673509
This commit is contained in:
parent
f24b58d19c
commit
03fbd7ec6e
1 changed files with 1 additions and 0 deletions
|
@ -5548,6 +5548,7 @@ gst_rtspsrc_open_from_sdp (GstRTSPSrc * src, GstSDPMessage * sdp,
|
|||
setup_failed:
|
||||
{
|
||||
GST_ERROR_OBJECT (src, "setup failed");
|
||||
gst_rtspsrc_cleanup (src);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue