void dispose()

Source

void dispose() {
  if (this._buffer != null && _renderingContext != null) {
    _renderingContext.deleteBuffer(_buffer);
    _renderingContext = null;
    _buffer = null;
    _contextIdentifier = -1;
  }
}