Minor fixes to mj_multiRay

PiperOrigin-RevId: 847780959
Change-Id: I3588415f215bd5f1592bec6678a5bae45d5f0980
This commit is contained in:
Yuval Tassa
2025-12-22 08:51:33 -08:00
committed by Copybara-Service
parent a3e66cd5df
commit 7fddeeaff6
6 changed files with 19 additions and 14 deletions
+2
View File
@@ -4412,7 +4412,9 @@ mjModel* mjCModel::Compile(const mjVFS* vfs, mjModel** m) {
} catch (mjCError err) {
// deallocate everything allocated in Compile
mj_deleteModel(model);
model = nullptr;
mj_deleteData(data);
data = nullptr;
Clear();
// save error info