rtspsrc: avoid leak
authorDaniela <daniela.muzzu@selexelsag.com>
Fri, 7 Sep 2012 14:15:42 +0000 (16:15 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 7 Sep 2012 14:33:18 +0000 (16:33 +0200)
When setup fails, make sure to cleanup afterwards.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=673509

gst/rtsp/gstrtspsrc.c

index e592850..3a1d538 100644 (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;
   }
 }