Fix a memory leak when using Python callbacks.

Fixes #527.

PiperOrigin-RevId: 481173711
Change-Id: Ie176a8bda09727b6be8b6641d3be9a75c675d566
This commit is contained in:
Saran Tunyasuvunakool
2022-10-14 10:11:39 -07:00
committed by Copybara-Service
parent af74044e43
commit ec6ea6a69e
3 changed files with 28 additions and 9 deletions
+2
View File
@@ -102,6 +102,8 @@ Python bindings
- The length of ``MjData.contact`` is now ``ncon`` rather than ``nconmax``, allowing it to be straightforwardly used as
an iterator without needing to check ``ncon``.
- Fix a memory leak when a Python callable is installed as callback
(`#527 <https://github.com/deepmind/mujoco/issues/527>`_).
Version 2.2.2 (September 7, 2022)
---------------------------------