[Scummvm-cvs-logs] SF.net SVN: scummvm:[47356] tools/trunk/engines/mohawk/mohawk_file.cpp

tdhs at users.sourceforge.net tdhs at users.sourceforge.net
Mon Jan 18 17:12:48 CET 2010


Revision: 47356
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47356&view=rev
Author:   tdhs
Date:     2010-01-18 16:12:47 +0000 (Mon, 18 Jan 2010)

Log Message:
-----------
extract_mohawk now segfaults at runtime. Running valgrind reveals a number of problems which predate the Common::String migration, but are now fatal. This commit corrects some, but segfault is still present.

Modified Paths:
--------------
    tools/trunk/engines/mohawk/mohawk_file.cpp

Modified: tools/trunk/engines/mohawk/mohawk_file.cpp
===================================================================
--- tools/trunk/engines/mohawk/mohawk_file.cpp	2010-01-18 15:40:49 UTC (rev 47355)
+++ tools/trunk/engines/mohawk/mohawk_file.cpp	2010-01-18 16:12:47 UTC (rev 47356)
@@ -48,6 +48,8 @@
 	_curFile = Common::String::emptyString;
 	_types = NULL;
 	_fileTable = NULL;
+	_curExType = 0;
+	_curExTypeIndex = 0;
 }
 
 void MohawkFile::close() {
@@ -56,6 +58,8 @@
 	delete[] _fileTable; _fileTable = NULL;
 
 	_curFile = Common::String::emptyString;
+	_curExType = 0;
+	_curExTypeIndex = 0;
 }
 
 void MohawkFile::open(Common::SeekableReadStream *stream) {


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