1
0
Fork 0
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:
ed 2018-02-20 14:19:01 +00:00
parent 400691b8e0
commit 26697f2421

View file

@ -50,6 +50,8 @@ SidePanel::SidePanel (StringRef title, int width, bool positionOnLeft,
SidePanel::~SidePanel()
{
Desktop::getInstance().removeGlobalMouseListener (this);
if (parent != nullptr)
parent->removeComponentListener (this);
}