diff options
| -rw-r--r-- | ChangeLog | 8 | ||||
| -rw-r--r-- | gst/rtsp/gstrtspsrc.c | 3 | 
2 files changed, 11 insertions, 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> diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 8a85c0b5..4405dba3 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -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);    }  | 
