destroy method
Destroys the object.
This method should be overridden by subclasses to destroy the object. This super method handles the freeing of allocated pointers.
Implementation
@override
void destroy() {
if (destroyed) {
return;
}
if (_streamInfo != null) {
lsl_destroy_streaminfo(_streamInfo!);
//allocate.free(_streamInfo!);
_streamInfo = null;
}
super.destroy();
}