diff --git a/gst/rtsp-server/rtsp-media.c b/gst/rtsp-server/rtsp-media.c index 49e86f233b..c8a35d7d15 100644 --- a/gst/rtsp-server/rtsp-media.c +++ b/gst/rtsp-server/rtsp-media.c @@ -2122,5 +2122,6 @@ default_query_stop (GstRTSPMedia * media, gint64 * stop) if (format != GST_FORMAT_TIME) *stop = -1; } + gst_query_unref (query); return res; }