Skip to content

Commit

Permalink
Remove extra 'systemRequestedQuit' from MainWindow code
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Siegle committed Jan 23, 2014
1 parent 143bffb commit fccf06c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions Source/Audio/AudioComponent.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ AudioComponent::~AudioComponent()
if (callbacksAreActive()) if (callbacksAreActive())
endCallbacks(); endCallbacks();


deleteAndZero(graphPlayer);

} }


void AudioComponent::setBufferSize(int s) void AudioComponent::setBufferSize(int s)
Expand Down
2 changes: 1 addition & 1 deletion Source/Audio/AudioComponent.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class AudioComponent


bool isPlaying; bool isPlaying;


AudioProcessorPlayer* graphPlayer; ScopedPointer<AudioProcessorPlayer> graphPlayer;


JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(AudioComponent); JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(AudioComponent);


Expand Down
3 changes: 0 additions & 3 deletions Source/MainWindow.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ void MainWindow::saveWindowBounds()


std::cout << "Saving window bounds." << std::endl; std::cout << "Saving window bounds." << std::endl;


//File file = File::getCurrentWorkingDirectory().getChildFile("windowState.xml");


File executable = File::getSpecialLocation(File::currentExecutableFile); File executable = File::getSpecialLocation(File::currentExecutableFile);
File executableDirectory = executable.getParentDirectory(); File executableDirectory = executable.getParentDirectory();
Expand All @@ -115,8 +114,6 @@ void MainWindow::saveWindowBounds()


xml->setAttribute("version", JUCEApplication::getInstance()->getApplicationVersion()); xml->setAttribute("version", JUCEApplication::getInstance()->getApplicationVersion());


JUCEApplication::getInstance()->systemRequestedQuit();

XmlElement* bounds = new XmlElement("BOUNDS"); XmlElement* bounds = new XmlElement("BOUNDS");
bounds->setAttribute("x",getScreenX()); bounds->setAttribute("x",getScreenX());
bounds->setAttribute("y",getScreenY()); bounds->setAttribute("y",getScreenY());
Expand Down

0 comments on commit fccf06c

Please sign in to comment.