release method

void release()

Implementation

void release() {
  var plane = ref.plane;
  while (plane != nullptr) {
    if (plane.ref.planeData != nullptr) {
      malloc.free(plane.ref.planeData);
    }
    final tmpPlane = plane;
    plane = plane.ref.nextPlane;
    malloc.free(tmpPlane);
  }
  malloc.free(this);
}