1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed a crash on exit error in the plug-in host on windows/linux

This commit is contained in:
hogliux 2016-09-08 10:47:57 +01:00
parent 16525c0a6f
commit 913a868d8d

View file

@ -125,13 +125,6 @@ MainHostWindow::MainHostWindow()
MainHostWindow::~MainHostWindow()
{
pluginListWindow = nullptr;
#if JUCE_MAC
setMacMainMenu (nullptr);
#else
setMenuBar (nullptr);
#endif
knownPluginList.removeChangeListener (this);
if (FilterGraph* filterGraph = getGraphEditor()->graph.get())
@ -139,6 +132,12 @@ MainHostWindow::~MainHostWindow()
getAppProperties().getUserSettings()->setValue ("mainWindowPos", getWindowStateAsString());
clearContentComponent();
#if JUCE_MAC
setMacMainMenu (nullptr);
#else
setMenuBar (nullptr);
#endif
}
void MainHostWindow::closeButtonPressed()