Merge branch 'move_subdir_bad' into tizen_gst_1.19.2_mono
[platform/upstream/gstreamer.git] / subprojects / gst-plugins-bad / gst / bayer / gstbayer2rgb.c
index 109bab2..370cddf 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * GStreamer
  * Copyright (C) 2007 David Schleef <ds@schleef.org>
  *
@@ -170,7 +170,7 @@ gst_bayer2rgb_class_init (GstBayer2RGBClass * klass)
 {
   GObjectClass *gobject_class;
   GstElementClass *gstelement_class;
-
+  GstCaps *tmp = NULL;
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
@@ -184,10 +184,12 @@ gst_bayer2rgb_class_init (GstBayer2RGBClass * klass)
 
   gst_element_class_add_pad_template (gstelement_class,
       gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
-          gst_caps_from_string (SRC_CAPS)));
+          tmp = gst_caps_from_string (SRC_CAPS)));
+  gst_caps_unref (tmp);
   gst_element_class_add_pad_template (gstelement_class,
       gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
-          gst_caps_from_string (SINK_CAPS)));
+          tmp = gst_caps_from_string (SINK_CAPS)));
+  gst_caps_unref (tmp);
 
   GST_BASE_TRANSFORM_CLASS (klass)->transform_caps =
       GST_DEBUG_FUNCPTR (gst_bayer2rgb_transform_caps);