Browse Source

Ensure global mouse listener is removed when SidePanel is destructed

tags/2021-05-28
ed 7 years ago
parent
commit
26697f2421
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      modules/juce_gui_basics/layout/juce_SidePanel.cpp

+ 2
- 0
modules/juce_gui_basics/layout/juce_SidePanel.cpp View File

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


Loading…
Cancel
Save