From c2614e525345830effa2b330323192213991e1df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 10 Jul 2014 17:19:42 +0100 Subject: [PATCH] rtspsrc: fix query leak https://bugzilla.gnome.org/show_bug.cgi?id=733003 --- gst/rtsp/gstrtspsrc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index e28fb9aea8..e7573c7a2b 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -2328,12 +2328,16 @@ gst_rtspsrc_get_position (GstRTSPSrc * src) GST_DEBUG_OBJECT (src, "retaining position %" GST_TIME_FORMAT, GST_TIME_ARGS (pos)); src->last_pos = pos; - return; + goto out; } } } src->last_pos = 0; + +out: + + gst_query_unref (query); } static gboolean