1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-08 04:20:09 +00:00

Made the juce demo clean up in the right order when quitting, to avoid problems with the GL demo.

This commit is contained in:
jules 2014-08-11 22:09:43 +01:00
parent 6a952d2e0b
commit c6dcbe5739

View file

@ -117,6 +117,11 @@ public:
demoList.selectRow (0);
}
void clearCurrentDemo()
{
currentDemo = nullptr;
}
void resized() override
{
Rectangle<int> r (getLocalBounds());
@ -509,6 +514,7 @@ MainAppWindow::MainAppWindow()
MainAppWindow::~MainAppWindow()
{
contentComponent->clearCurrentDemo();
clearContentComponent();
contentComponent = nullptr;
applicationCommandManager = nullptr;