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.
This commit is contained in:
Sjoerd Simons 2008-05-05 11:19:13 +00:00 committed by Wim Taymans
parent 24e21ae6e9
commit 89b114fe44
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,10 @@
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),

View file

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