Add code to free pipeline element and hash-table.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
g_mutex_unlock (&e->lock);
g_mutex_clear (&e->lock);
+
+ g_free (e);
}
/**
gst_object_unref (p->bus);
/** Destroy registered callback handles */
- g_hash_table_remove_all (p->namednodes);
+ g_hash_table_destroy (p->namednodes);
/** Stop (NULL State) the pipeline */
scret = gst_element_set_state (p->element, GST_STATE_NULL);
EXPECT_EQ (status, ML_ERROR_NONE);
status = ml_tensors_data_create (info, &data);
+ EXPECT_EQ (status, ML_ERROR_NONE);
/* null data */
status = ml_pipeline_src_input_data (srchandle, NULL, ML_PIPELINE_BUF_POLICY_DO_NOT_FREE);