various: fix pad template leaks
[platform/upstream/gstreamer.git] / sys / oss4 / oss4-source.c
index 9331f80..bb64593 100644 (file)
@@ -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