Commit 89b114fe authored by Sjoerd Simons's avatar Sjoerd Simons Committed by Wim Taymans
Browse files

gst/rtsp/gstrtspsrc.c: Don't leak file descriptors on error. Fixes #531532.

Original commit message from CVS:
Patch by: Sjoerd Simons <sjoerd at luon dot net>
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_init), (gst_rtspsrc_open):
Don't leak file descriptors on error. Fixes #531532.
parent 24e21ae6
2008-05-05 Wim Taymans <wim.taymans@collabora.co.uk>
Patch by: Sjoerd Simons <sjoerd at luon dot net>
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_init), (gst_rtspsrc_open):
Don't leak file descriptors on error. Fixes #531532.
2008-05-03 Sebastian Dröge <slomo@circular-chaos.org>
 
* ext/gconf/gstgconfaudiosrc.c: (gst_gconf_audio_src_reset),
......
......@@ -4064,6 +4064,10 @@ setup_failed:
}
cleanup_error:
{
if (src->connection) {
gst_rtsp_connection_free (src->connection);
src->connection = NULL;
}
GST_RTSP_STATE_UNLOCK (src);
gst_rtsp_message_unset (&request);
gst_rtsp_message_unset (&response);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment