freeStructFields method
Deallocates any memory on the struct
that would be missed simply by
calling calloc.free(struct)
, which the parent who called this method
will do after this method completes.
Implementation
@override
void freeStructFields(bindings.BaseOptions struct) {
if (struct.model_asset_path.isNotNullPointer) {
calloc.free(struct.model_asset_path);
}
if (struct.model_asset_buffer.isNotNullPointer) {
calloc.free(struct.model_asset_buffer);
}
}