1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-22 01:34:21 +00:00

Avoided some problems when modal components are left open during shutdown.

This commit is contained in:
jules 2014-01-08 10:31:09 +00:00
parent 593e1c1e65
commit 7091121b2c

View file

@ -63,7 +63,9 @@ public:
if (isActive)
{
isActive = false;
ModalComponentManager::getInstance()->triggerAsyncUpdate();
if (ModalComponentManager* mcm = ModalComponentManager::getInstanceWithoutCreating())
mcm->triggerAsyncUpdate();
}
}
@ -83,6 +85,7 @@ ModalComponentManager::ModalComponentManager()
ModalComponentManager::~ModalComponentManager()
{
stack.clear();
clearSingletonInstance();
}