DRASCULA: Fixed Code to allow Quit/RTL Function and avoid Memory Leakage.

A memory leakage was traced down to a failure to call the engine destructor.
This was due to the engine directly calling OSystem quit() i.e. _system->quit(), rather than
just allowing engine::run() to return.
Have removed this code and implemented the changes required to allow graceful Quit/RTL to occur.

svn-id: r55583
This commit is contained in:
David Turner 2011-01-28 08:07:50 +00:00
parent f7e1ed3762
commit 96174d6842
9 changed files with 106 additions and 106 deletions

View file

@ -64,7 +64,7 @@ bool DrasculaEngine::saveLoadScreen() {
_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, true);
setCursor(kCursorCrosshair);
for (;;) {
while (!shouldQuit()) {
y = 27;
copyBackground();
for (n = 0; n < NUM_SAVES; n++) {