From 96174d6842fafe24afde9964e48967bc44b6badd Mon Sep 17 00:00:00 2001 From: David Turner Date: Fri, 28 Jan 2011 08:07:50 +0000 Subject: 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 --- engines/drascula/actors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/drascula/actors.cpp') diff --git a/engines/drascula/actors.cpp b/engines/drascula/actors.cpp index 8523b5b158..c0b0b7c98b 100644 --- a/engines/drascula/actors.cpp +++ b/engines/drascula/actors.cpp @@ -450,7 +450,7 @@ void DrasculaEngine::placeVonBraun(int pointX) { trackVonBraun = (pointX < vonBraunX) ? 0 : 1; vonBraunHasMoved = 1; - for (;;) { + while (!shouldQuit()) { updateEvents(); updateRoom(); updateScreen(); -- cgit v1.2.3