various: fix pad template leaks
[platform/upstream/gstreamer.git] / sys / ximage / gstximagesrc.c
index 31365c1..b0d99ad 100644 (file)
@@ -1006,7 +1006,7 @@ gst_ximage_src_base_init (gpointer g_class)
       "Lutz Mueller <lutz@users.sourceforge.net>, "
       "Jan Schmidt <thaytan@mad.scientist.com>, "
       "Zaheer Merali <zaheerabbas at merali dot org>");
-  gst_element_class_add_pad_template (ec, gst_static_pad_template_get (&t));
+  gst_element_class_add_static_pad_template (ec, &t);
 }
 
 static void