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:
parent
16525c0a6f
commit
913a868d8d
1 changed files with 6 additions and 7 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue