summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorTommi Myöhänen <ext-tommi.myohanen@nokia.com>2007-11-14 15:29:05 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-11-14 15:29:05 +0000
commite5b5743a96fc4298f2ce3906305a1732832f3ff8 (patch)
tree7fdeb3a469fbbdb3a28026e777d4081db8b375ae /gst
parentd04c0bb4c4f0f3f152da78cc8aa06090b08b375e (diff)
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).
Diffstat (limited to 'gst')
-rw-r--r--gst/rtsp/gstrtspsrc.c3
1 files changed, 3 insertions, 0 deletions
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);
}