summaryrefslogtreecommitdiff
path: root/sys/oss4
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-11-28 12:58:44 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-11-28 13:30:27 +0000
commitc0e101e93fa178fb3cb62bed64117c005583b032 (patch)
tree3db76b46e901357dba441789e899f64321f474d7 /sys/oss4
parenta2337b8af45cb5e8c091ff0e1c3ef4b6cc7b20a3 (diff)
downloadgstreamer-plugins-good-c0e101e93fa178fb3cb62bed64117c005583b032.tar.gz
various: fix pad template leaks
https://bugzilla.gnome.org/show_bug.cgi?id=662664
Diffstat (limited to 'sys/oss4')
-rw-r--r--sys/oss4/oss4-sink.c1
-rw-r--r--sys/oss4/oss4-source.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/oss4/oss4-sink.c b/sys/oss4/oss4-sink.c
index 1d2220b4b..de2d8a99d 100644
--- a/sys/oss4/oss4-sink.c
+++ b/sys/oss4/oss4-sink.c
@@ -134,6 +134,7 @@ gst_oss4_sink_base_init (gpointer g_class)
templ = gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
gst_oss4_audio_get_template_caps ());
gst_element_class_add_pad_template (element_class, templ);
+ gst_object_unref (templ);
}
static void
diff --git a/sys/oss4/oss4-source.c b/sys/oss4/oss4-source.c
index 9331f8023..bb6459399 100644
--- a/sys/oss4/oss4-source.c
+++ b/sys/oss4/oss4-source.c
@@ -115,6 +115,7 @@ gst_oss4_source_base_init (gpointer g_class)
templ = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
gst_oss4_audio_get_template_caps ());
gst_element_class_add_pad_template (element_class, templ);
+ gst_object_unref (templ);
}
static void