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

Ensure that modal components set auto-delete when dismissed are properly cleaned up

This commit is contained in:
ed 2020-12-01 09:16:02 +00:00
parent 20b63e2a61
commit 9d0a97c33c

View file

@ -35,6 +35,12 @@ struct ModalComponentManager::ModalItem : public ComponentMovementWatcher
jassert (comp != nullptr);
}
~ModalItem() override
{
if (autoDelete)
std::unique_ptr<Component> componentDeleter (component);
}
void componentMovedOrResized (bool, bool) override {}
using ComponentMovementWatcher::componentMovedOrResized;