1
0
Fork 0

Fix Sentry issue: FGCom crash on exit

FGCom was added to the wrong group, leading it to be shutdown after
FGSoundManager, and hence, after OpenAL wad closed, which causes
crashes.

Sentry-Id: FLIGHTGEAR-66
This commit is contained in:
Automatic Release Builder 2020-10-05 14:24:43 +01:00 committed by James Turner
parent d252740307
commit 7597887e60

View file

@ -1100,8 +1100,13 @@ void fgCreateSubsystems(bool duringReset) {
#ifdef ENABLE_IAX
////////////////////////////////////////////////////////////////////
// Initialize the FGCom subsystem.
// very important this goes in the SOUND group, since IAXClient
// depends on OpenAL, which is shutdown when the SOUND group
// shutdown.
// Sentry: FLIGHTGEAR-66
////////////////////////////////////////////////////////////////////
globals->add_subsystem("fgcom", new FGCom);
globals->add_new_subsystem<FGCom>(SGSubsystemMgr::SOUND);
#endif
{