Minor fixes to mj_multiRay
PiperOrigin-RevId: 847780959 Change-Id: I3588415f215bd5f1592bec6678a5bae45d5f0980
This commit is contained in:
committed by
Copybara-Service
parent
a3e66cd5df
commit
7fddeeaff6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user