1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AU Client: Avoid creating ModalComponentManager during shutdown

The ScopedJuceInitialiser may have been destroyed before shutdown is
called, in which case singletons will have been deleted and cleared.
Attempting to access the ModalComponentManager here will recreate it,
and will trigger a leak detector warning later on.
This commit is contained in:
reuk 2024-06-12 19:04:34 +01:00
parent 2301f398aa
commit fd01869cfd
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -1843,7 +1843,8 @@ public:
{
// there's some kind of component currently modal, but the host
// is trying to delete our plugin..
jassert (Component::getCurrentlyModalComponent() == nullptr);
jassert (ModalComponentManager::getInstanceWithoutCreating() == nullptr
|| Component::getCurrentlyModalComponent() == nullptr);
}
}
};