diff options
author | Daniela <daniela.muzzu@selexelsag.com> | 2012-09-07 16:15:42 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-09-07 16:15:42 +0200 |
commit | 180e42b381a10b61e36a672c806ed59c0d72ae26 (patch) | |
tree | d0fbf966da5dcbdca6e9058dd4bdcd1411cffb49 | |
parent | cefbbb31c3306ec1ed003ded41e7c07971b56cec (diff) |
rtspsrc: avoid leak
When setup fails, make sure to cleanup afterwards.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=673509
-rw-r--r-- | gst/rtsp/gstrtspsrc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 52c4cd956..48698932d 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -5628,6 +5628,7 @@ gst_rtspsrc_open_from_sdp (GstRTSPSrc * src, GstSDPMessage * sdp, setup_failed: { GST_ERROR_OBJECT (src, "setup failed"); + gst_rtspsrc_cleanup (src); return res; } } |