Fix GLFW crash when Python exits while the passive viewer is running.

Fixes #790

PiperOrigin-RevId: 549440435
Change-Id: I808f6aaab6662225e5fe1131e0da72eca6011ba9
This commit is contained in:
Saran Tunyasuvunakool
2023-07-19 15:19:44 -07:00
committed by Copybara-Service
parent 8386b28877
commit f7847ba73e
7 changed files with 192 additions and 116 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ PlatformUIAdapter::PlatformUIAdapter() {
mjr_defaultContext(&con_);
}
PlatformUIAdapter::~PlatformUIAdapter() {
void PlatformUIAdapter::FreeMjrContext() {
mjr_freeContext(&con_);
}