gst: Fix some query leaks
authorNicola Murino <nicola.murino@gmail.com>
Mon, 12 Mar 2012 07:48:32 +0000 (08:48 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 12 Mar 2012 08:10:20 +0000 (09:10 +0100)
gst/flv/gstflvmux.c
gst/isomp4/gstqtmux.c
gst/matroska/matroska-mux.c

index f2b9688..c347ff0 100644 (file)
@@ -140,10 +140,8 @@ gst_flv_mux_base_init (gpointer g_class)
 {
   GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
 
-  gst_element_class_add_static_pad_template (element_class,
-      &videosink_templ);
-  gst_element_class_add_static_pad_template (element_class,
-      &audiosink_templ);
+  gst_element_class_add_static_pad_template (element_class, &videosink_templ);
+  gst_element_class_add_static_pad_template (element_class, &audiosink_templ);
   gst_element_class_add_static_pad_template (element_class, &src_templ);
   gst_element_class_set_details_simple (element_class, "FLV muxer",
       "Codec/Muxer",
@@ -1127,6 +1125,7 @@ gst_flv_mux_write_header (GstFlvMux * mux)
       /* FIXME 0.11: change to query not handled => seeking not supported */
       GST_WARNING_OBJECT (mux, "downstream did not handle seeking query");
     }
+    gst_query_unref (query);
   }
 
   header = gst_flv_mux_create_header (mux);
index 80fa5af..ad2baf0 100644 (file)
@@ -1635,6 +1635,7 @@ gst_qt_mux_start_file (GstQTMux * qtmux)
       /* FIXME 0.11: change to query not handled => seeking not supported */
       GST_WARNING_OBJECT (qtmux, "downstream did not handle seeking query");
     }
+    gst_query_unref (query);
   }
 
   /* let downstream know we think in BYTES and expect to do seeking later on */
index fb86ef4..168b2a9 100644 (file)
@@ -2376,6 +2376,7 @@ gst_matroska_mux_start (GstMatroskaMux * mux)
       /* FIXME 0.11: change to query not handled => seeking not supported */
       GST_WARNING_OBJECT (mux, "downstream did not handle seeking query");
     }
+    gst_query_unref (query);
   }
 
   if (!strcmp (mux->doctype, GST_MATROSKA_DOCTYPE_WEBM)) {