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:
parent
2301f398aa
commit
fd01869cfd
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue