mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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:
parent
d04c0bb4c4
commit
e5b5743a96
2 changed files with 11 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue