(self)
Frees the native MuJoCo data structures held by this `Physics` instance.

    This is an advanced feature for use when manual memory management is
    necessary. This `Physics` object MUST NOT be used after this function has
    been called.
Frees the native MuJoCo data structures held by this `Physics` instance.
Frees the native MuJoCo data structures held by this Physics instance .
def free(self):
    """Frees the native MuJoCo data structures held by this `Physics` instance.

    This is an advanced feature for use when manual memory management is
    necessary. This `Physics` object MUST NOT be used after this function has
    been called.
    """
    with self._contexts_lock:
      if self._contexts:
        self._free_rendering_contexts()
    self.data.free()
    self.model.free()
def free ( self ) : with self . _contexts_lock : if self . _contexts : self . _free_rendering_contexts ( ) self . data . free ( ) self . model . free ( )