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
oss = GST_OSS4_SINK (bsink);
if (oss->fd == -1) {
- caps = gst_caps_copy (gst_oss4_audio_get_template_caps ());
+ caps = gst_oss4_audio_get_template_caps ();
} else if (oss->probed_caps) {
caps = gst_caps_copy (oss->probed_caps);
} else {