[Convert] Fix memory error
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 3 Jul 2018 08:14:49 +0000 (17:14 +0900)
committer오세원/Data Service Lab(SR)/Engineer/삼성전자 <sewon.oh@samsung.com>
Wed, 4 Jul 2018 02:46:04 +0000 (11:46 +0900)
Unref gst object when it is no more needed.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
gst/tensor_converter/tensor_converter.c

index 9c6e03d..d15d3bc 100644 (file)
@@ -811,6 +811,7 @@ gst_tensor_converter_fixate_caps (GstBaseTransform * trans,
   } else {
     gst_caps_unref (othercaps);
   }
+  gst_caps_unref (supposed);
 
   GST_DEBUG_OBJECT (trans, "now fixating %" GST_PTR_FORMAT, result);