[Scummvm-cvs-logs] SF.net SVN: scummvm:[42369] scummvm/trunk/engines/cruise/cruise.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Sat Jul 11 07:12:17 CEST 2009
Revision: 42369
http://scummvm.svn.sourceforge.net/scummvm/?rev=42369&view=rev
Author: dreammaster
Date: 2009-07-11 05:12:17 +0000 (Sat, 11 Jul 2009)
Log Message:
-----------
Active background screens are now properly freed when the game exits
Modified Paths:
--------------
scummvm/trunk/engines/cruise/cruise.cpp
Modified: scummvm/trunk/engines/cruise/cruise.cpp
===================================================================
--- scummvm/trunk/engines/cruise/cruise.cpp 2009-07-11 05:10:13 UTC (rev 42368)
+++ scummvm/trunk/engines/cruise/cruise.cpp 2009-07-11 05:12:17 UTC (rev 42369)
@@ -139,6 +139,14 @@
void CruiseEngine::deinitialise() {
polyStructNorm.clear();
polyStructExp.clear();
+
+ // Clear any backgrounds
+ for (int i = 0; i < 8; ++i) {
+ if (backgroundScreens[i]) {
+ free(backgroundScreens[i]);
+ backgroundScreens[i] = NULL;
+ }
+ }
}
bool CruiseEngine::loadLanguageStrings() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list