freeNative method
Frees the native resources owned by this wrapper. Subclasses implement the concrete free logic here; callers must use dispose instead.
Implementation
@override
void freeNative() {
finalizer.detach(this);
calloc.free(ptr.ref.ptr);
calloc.free(ptr);
}