Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove extra 'systemRequestedQuit' from MainWindow code

  • Loading branch information...
commit fccf06c28858d0e38186cb53614ad6d59a1c9907 1 parent 143bffb
Josh Siegle authored
View
2  Source/Audio/AudioComponent.cpp
@@ -117,8 +117,6 @@ AudioComponent::~AudioComponent()
if (callbacksAreActive())
endCallbacks();
- deleteAndZero(graphPlayer);
-
}
void AudioComponent::setBufferSize(int s)
View
2  Source/Audio/AudioComponent.h
@@ -91,7 +91,7 @@ class AudioComponent
bool isPlaying;
- AudioProcessorPlayer* graphPlayer;
+ ScopedPointer<AudioProcessorPlayer> graphPlayer;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(AudioComponent);
View
3  Source/MainWindow.cpp
@@ -105,7 +105,6 @@ void MainWindow::saveWindowBounds()
std::cout << "Saving window bounds." << std::endl;
- //File file = File::getCurrentWorkingDirectory().getChildFile("windowState.xml");
File executable = File::getSpecialLocation(File::currentExecutableFile);
File executableDirectory = executable.getParentDirectory();
@@ -115,8 +114,6 @@ void MainWindow::saveWindowBounds()
xml->setAttribute("version", JUCEApplication::getInstance()->getApplicationVersion());
- JUCEApplication::getInstance()->systemRequestedQuit();
-
XmlElement* bounds = new XmlElement("BOUNDS");
bounds->setAttribute("x",getScreenX());
bounds->setAttribute("y",getScreenY());
Please sign in to comment.
Something went wrong with that request. Please try again.