Unref gst-buffer that is allocated in the test case.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
in = gst_buffer_new_allocate (NULL, 200, NULL);
out = gst_tensor_buffer_from_config (in, &config);
EXPECT_FALSE (out != NULL);
in = gst_buffer_new_allocate (NULL, 200, NULL);
out = gst_tensor_buffer_from_config (in, &config);
EXPECT_FALSE (out != NULL);
+
+ gst_buffer_unref (out);
in = gst_buffer_new_allocate (NULL, data_size, NULL);
out = gst_tensor_buffer_from_config (NULL, &config);
EXPECT_FALSE (out != NULL);
in = gst_buffer_new_allocate (NULL, data_size, NULL);
out = gst_tensor_buffer_from_config (NULL, &config);
EXPECT_FALSE (out != NULL);
+ gst_buffer_unref (in);
+ gst_buffer_unref (out);
in = gst_buffer_new_allocate (NULL, data_size, NULL);
out = gst_tensor_buffer_from_config (in, NULL);
EXPECT_FALSE (out != NULL);
in = gst_buffer_new_allocate (NULL, data_size, NULL);
out = gst_tensor_buffer_from_config (in, NULL);
EXPECT_FALSE (out != NULL);
+
+ gst_buffer_unref (out);
in = gst_buffer_new_allocate (NULL, data_size, NULL);
out = gst_tensor_buffer_from_config (in, &config);
EXPECT_FALSE (out != NULL);
in = gst_buffer_new_allocate (NULL, data_size, NULL);
out = gst_tensor_buffer_from_config (in, &config);
EXPECT_FALSE (out != NULL);
+
+ gst_buffer_unref (out);