Fix a mjvSceneState leak in the passive viewer.
PiperOrigin-RevId: 526957248 Change-Id: I4f30faf097da64189607a4b98c6dff04fec773fa
This commit is contained in:
committed by
Copybara-Service
parent
db3b49b60f
commit
c2115a1f51
@@ -2340,6 +2340,8 @@ void Simulate::RenderLoop() {
|
||||
|
||||
if (fully_managed_){
|
||||
mjv_freeScene(&this->scn);
|
||||
} else {
|
||||
mjv_freeSceneState(&scnstate_);
|
||||
}
|
||||
|
||||
this->exitrequest.store(2);
|
||||
|
||||
Reference in New Issue
Block a user