Skip to content

Commit c2115a1

Browse files
saran-tcopybara-github
authored andcommitted
Fix a mjvSceneState leak in the passive viewer.
PiperOrigin-RevId: 526957248 Change-Id: I4f30faf097da64189607a4b98c6dff04fec773fa
1 parent db3b49b commit c2115a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

simulate/simulate.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,6 +2340,8 @@ void Simulate::RenderLoop() {
23402340

23412341
if (fully_managed_){
23422342
mjv_freeScene(&this->scn);
2343+
} else {
2344+
mjv_freeSceneState(&scnstate_);
23432345
}
23442346

23452347
this->exitrequest.store(2);

0 commit comments

Comments
 (0)