free method

void free()

Implementation

void free() {
  if (_freed) return;

  calloc.free(dataPtr);
  calloc.free(gradPtr);

  _freed = true;
}