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:
Daniela 2012-09-07 16:15:42 +02:00 committed by Wim Taymans
parent f24b58d19c
commit 03fbd7ec6e

View file

@ -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;
}
}