hlsdemux: don't leek the query
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Tue, 29 Mar 2011 21:18:24 +0000 (23:18 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 30 Mar 2011 07:19:23 +0000 (09:19 +0200)
gst/hls/gsthlsdemux.c

index 745dfd1bc9691f34a4b79c14a76c3a10abb624e2..edd65fbf5c4700968be543c2d04b3edee2bcf476 100644 (file)
@@ -327,6 +327,7 @@ gst_hls_demux_sink_event (GstPad * pad, GstEvent * event)
         gst_hls_demux_set_location (demux, uri);
         g_free (uri);
       }
+      gst_query_unref (query);
 
       playlist = g_strndup ((gchar *) GST_BUFFER_DATA (demux->playlist),
           GST_BUFFER_SIZE (demux->playlist));