diff --git a/modules/juce_gui_basics/layout/juce_SidePanel.cpp b/modules/juce_gui_basics/layout/juce_SidePanel.cpp index ac3fa1d173..70c21dc178 100644 --- a/modules/juce_gui_basics/layout/juce_SidePanel.cpp +++ b/modules/juce_gui_basics/layout/juce_SidePanel.cpp @@ -50,6 +50,8 @@ SidePanel::SidePanel (StringRef title, int width, bool positionOnLeft, SidePanel::~SidePanel() { + Desktop::getInstance().removeGlobalMouseListener (this); + if (parent != nullptr) parent->removeComponentListener (this); }