From a06ac6db4816908209294bbd2144551e0a7cdc9c Mon Sep 17 00:00:00 2001 From: Kallinteris Andreas <30759571+Kallinteris-Andreas@users.noreply.github.com> Date: Fri, 10 Nov 2023 17:49:06 +0200 Subject: [PATCH] Update mujoco_env.py --- gymnasium/envs/mujoco/mujoco_env.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gymnasium/envs/mujoco/mujoco_env.py b/gymnasium/envs/mujoco/mujoco_env.py index 1c1a986fe..956fda093 100644 --- a/gymnasium/envs/mujoco/mujoco_env.py +++ b/gymnasium/envs/mujoco/mujoco_env.py @@ -329,6 +329,7 @@ def _get_viewer( def close(self): if self.viewer is not None: + self.viewer.free() self.viewer = None self._viewers = {}