From 03fbd7ec6e15192e9b50dee040ab3be2d5394379 Mon Sep 17 00:00:00 2001 From: Daniela Date: Fri, 7 Sep 2012 16:15:42 +0200 Subject: [PATCH] rtspsrc: avoid leak When setup fails, make sure to cleanup afterwards. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=673509 --- gst/rtsp/gstrtspsrc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index e592850680..3a1d538925 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -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; } }