add destroy_notify callback at the example using allocate_invoke.
Signed-off-by: Hyoung Joo Ahn <hello.ahnn@gmail.com>
}
/**
+ * @brief destroy notify callback of tensor_filter custom
+ */
+static void
+pt_destroy_notify (void * data)
+{
+ g_assert (data);
+ g_free (data);
+}
+
+/**
* @brief tensor_filter custom subplugin definition
*/
static NNStreamer_custom_class NNStreamer_custom_body = {
.setInputDim = set_inputDim,
.invoke = NULL,
.allocate_invoke = pt_allocate_invoke,
+ .destroy_notify = pt_destroy_notify,
};
/* The dyn-loaded object */