gst/rtsp/gstrtspsrc.c: Don't leak event, don't leak range (fixes #496752).

Original commit message from CVS:
Patch by: Tommi Myöhänen  <ext-tommi dot myohanen at nokia dot com>
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_handle_src_event),
(gst_rtspsrc_parse_range):
Don't leak event, don't leak range (fixes #496752).
This commit is contained in:
Tommi Myöhänen 2007-11-14 15:29:05 +00:00 committed by Tim-Philipp Müller
parent d04c0bb4c4
commit e5b5743a96
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2007-11-14 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com>
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_handle_src_event),
(gst_rtspsrc_parse_range):
Don't leak event, don't leak range (fixes #496752).
2007-11-14 Michael Smith <msmith@fluendo.com>
Patch by: Arek Korbik <arkadini@gmail.com>

View file

@ -1367,6 +1367,7 @@ gst_rtspsrc_handle_src_event (GstPad * pad, GstEvent * event)
default:
break;
}
gst_event_unref (event);
gst_object_unref (src);
return res;
@ -3782,6 +3783,8 @@ gst_rtspsrc_parse_range (GstRTSPSrc * src, const gchar * range,
* there that we want to keep. */
if (seconds != -1)
gst_segment_set_duration (segment, GST_FORMAT_TIME, seconds);
gst_rtsp_range_free (therange);
} else {
GST_WARNING_OBJECT (src, "could not parse range: '%s'", range);
}