From 3f4e4edaa2da3a5e5f7f8503181dbb85cc7fc095 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Mon, 12 Mar 2012 08:48:32 +0100 Subject: [PATCH] gst: Fix some query leaks --- gst/flv/gstflvmux.c | 7 +++---- gst/isomp4/gstqtmux.c | 1 + gst/matroska/matroska-mux.c | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gst/flv/gstflvmux.c b/gst/flv/gstflvmux.c index f2b9688cd2..c347ff05f1 100644 --- a/gst/flv/gstflvmux.c +++ b/gst/flv/gstflvmux.c @@ -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); diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index 80fa5afbe4..ad2baf0e44 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -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 */ diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c index fb86ef4983..168b2a9abe 100644 --- a/gst/matroska/matroska-mux.c +++ b/gst/matroska/matroska-mux.c @@ -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)) {