free method

void free()

Implementation

void free() {
  detach();
  _staticValues?.free();
  _staticFunctions?.free();
  if (_ref != nullptr) {
    calloc.free(_ref);
  }
  _initializeNC?.close();
  _finalizeNC?.close();
  _hasPropertyNC?.close();
  _getPropertyNC?.close();
  _setPropertyNC?.close();
  _deletePropertyNC?.close();
  _getPropertyNamesNC?.close();
  _callAsFunctionNC?.close();
  _callAsConstructorNC?.close();
  _hasInstanceNC?.close();
  _convertToTypeNC?.close();
}