fix mem leak 62/109162/1 accepted/tizen/3.0/common/20170113.072247 accepted/tizen/3.0/ivi/20170113.000837 accepted/tizen/3.0/mobile/20170113.000746 accepted/tizen/3.0/tv/20170113.000805 accepted/tizen/3.0/wearable/20170113.000820 submit/tizen_3.0/20170111.113840
authorEunhae Choi <eunhae1.choi@samsung.com>
Mon, 9 Jan 2017 05:42:39 +0000 (14:42 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Mon, 9 Jan 2017 05:42:39 +0000 (14:42 +0900)
Change-Id: Ib5ee250672babfb4b6828748f6c2df327c87f0f8

ext/opencv/gstcvdilateerode.c
ext/opencv/gstcvsmooth.c
gst/frei0r/gstfrei0rfilter.c
gst/frei0r/gstfrei0rsrc.c
sys/vdpau/gstvdpvideopostprocess.c

index 13342ab8877129e1b9ce7eef1054ec37f3b98ec9..4dc3544321174c01db8d4ceaf4ecde7ed431d042 100644 (file)
@@ -143,6 +143,7 @@ gst_cv_dilate_erode_class_init (GstCvDilateErodeClass * klass)
   gst_element_class_add_pad_template (element_class, templ);
   templ = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, caps);
   gst_element_class_add_pad_template (element_class, templ);
+  gst_caps_unref (caps);
 }
 
 /* initialize the new element
index 169fd16049dee54549ed98f0f81d2f6b42210c90..ac84f37657b6ccac57194efe9268aae6a9997519 100644 (file)
@@ -190,6 +190,7 @@ gst_cv_smooth_class_init (GstCvSmoothClass * klass)
   gst_element_class_add_pad_template (element_class, templ);
   templ = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, caps);
   gst_element_class_add_pad_template (element_class, templ);
+  gst_caps_unref (caps);
 }
 
 /* initialize the new element
index 0cb15c6eedea8802c4a3afdcdf8a0b5e943bef6e..ba0d4053244b911e843b7111d4f4bc836e77339d 100644 (file)
@@ -232,6 +232,7 @@ gst_frei0r_filter_class_init (GstFrei0rFilterClass * klass,
 
   templ = gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, caps);
   gst_element_class_add_pad_template (gstelement_class, templ);
+  gst_caps_unref (caps);
 
   gsttrans_class->set_caps = GST_DEBUG_FUNCPTR (gst_frei0r_filter_set_caps);
   gsttrans_class->stop = GST_DEBUG_FUNCPTR (gst_frei0r_filter_stop);
index e5cf4120556701132fc9cea7f735a617bb20263e..eb3c010fdc0a91ab9cde9b7e5e9c6590f96f461c 100644 (file)
@@ -348,6 +348,7 @@ gst_frei0r_src_class_init (GstFrei0rSrcClass * klass,
 
   templ = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, caps);
   gst_element_class_add_pad_template (gstelement_class, templ);
+  gst_caps_unref (caps);
 
   gstbasesrc_class->set_caps = GST_DEBUG_FUNCPTR (gst_frei0r_src_set_caps);
   gstbasesrc_class->is_seekable =
index b7b68798c967a08aec9b3f2b4f377ad8bc8dfd54..788d6885a096a85ceeca6f2c97751276013e74ce 100644 (file)
@@ -1233,12 +1233,14 @@ gst_vdp_vpp_class_init (GstVdpVideoPostProcessClass * klass)
   src_template = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
       src_caps);
   gst_element_class_add_pad_template (gstelement_class, src_template);
+  gst_caps_unref (src_caps);
 
   /* SINK PAD */
   sink_caps = gst_vdp_video_buffer_get_caps (FALSE, 0);
   sink_template = gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
       sink_caps);
   gst_element_class_add_pad_template (gstelement_class, sink_template);
+  gst_caps_unref (sink_caps);
 }
 
 static void