mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Ensure global mouse listener is removed when SidePanel is destructed
This commit is contained in:
parent
400691b8e0
commit
26697f2421
1 changed files with 2 additions and 0 deletions
|
|
@ -50,6 +50,8 @@ SidePanel::SidePanel (StringRef title, int width, bool positionOnLeft,
|
|||
|
||||
SidePanel::~SidePanel()
|
||||
{
|
||||
Desktop::getInstance().removeGlobalMouseListener (this);
|
||||
|
||||
if (parent != nullptr)
|
||||
parent->removeComponentListener (this);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue