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:
parent
20b63e2a61
commit
9d0a97c33c
1 changed files with 6 additions and 0 deletions
|
|
@ -35,6 +35,12 @@ struct ModalComponentManager::ModalItem : public ComponentMovementWatcher
|
||||||
jassert (comp != nullptr);
|
jassert (comp != nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~ModalItem() override
|
||||||
|
{
|
||||||
|
if (autoDelete)
|
||||||
|
std::unique_ptr<Component> componentDeleter (component);
|
||||||
|
}
|
||||||
|
|
||||||
void componentMovedOrResized (bool, bool) override {}
|
void componentMovedOrResized (bool, bool) override {}
|
||||||
|
|
||||||
using ComponentMovementWatcher::componentMovedOrResized;
|
using ComponentMovementWatcher::componentMovedOrResized;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue