Commit e5b5743a authored by Tommi Myöhänen's avatar Tommi Myöhänen Committed by Tim-Philipp Müller
Browse files

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).
parent d04c0bb4
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);
}
......
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