In newer Qt, evidently when using the close button on the window
(not when calling close() as a result of a menu item!), the GLWidgets'
contexts will be gone by the time app.exec() returns, preventing us
from doing proper cleanup. Do the mixer cleanup in closeEvent() instead,
fixing the issue.
}
int rc = app.exec();
- global_mixer->quit();
- mainWindow.mixer_shutting_down();
delete global_mixer;
ImageInput::shutdown_updaters();
return rc;
}
analyzer->hide();
+ global_mixer->quit();
+ mixer_shutting_down();
event->accept();
}