free method

  1. @override
void free()
override

Closes this instance and calls malloc.free for the Pointer if this is the initializer instance. See isInitializer.

Implementation

@override
void free() {
  if (isClosed) return;
  super.free();
  if (isInitializer) {
    malloc.free(_pointer);
  }
}