[Scummvm-cvs-logs] SF.net SVN: scummvm:[42554] scummvm/branches/gsoc2009-draci/engines/draci
dkasak13 at users.sourceforge.net
dkasak13 at users.sourceforge.net
Fri Jul 17 03:05:14 CEST 2009
Revision: 42554
http://scummvm.svn.sourceforge.net/scummvm/?rev=42554&view=rev
Author: dkasak13
Date: 2009-07-17 01:05:13 +0000 (Fri, 17 Jul 2009)
Log Message:
-----------
* Renamed BAFile::closeFile() to close()
* Fixed leak in BArchive::loadFileDFW()
Modified Paths:
--------------
scummvm/branches/gsoc2009-draci/engines/draci/barchive.cpp
scummvm/branches/gsoc2009-draci/engines/draci/barchive.h
Modified: scummvm/branches/gsoc2009-draci/engines/draci/barchive.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/barchive.cpp 2009-07-17 00:58:26 UTC (rev 42553)
+++ scummvm/branches/gsoc2009-draci/engines/draci/barchive.cpp 2009-07-17 01:05:13 UTC (rev 42554)
@@ -375,6 +375,8 @@
assert(len == _files[i]._length && "Uncompressed file not of the expected length");
+ delete[] buf;
+
return _files + i;
}
@@ -386,7 +388,7 @@
// Delete all cached data
for (unsigned int i = 0; i < _fileCount; ++i) {
- _files[i].closeFile();
+ _files[i].close();
}
}
Modified: scummvm/branches/gsoc2009-draci/engines/draci/barchive.h
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/barchive.h 2009-07-17 00:58:26 UTC (rev 42553)
+++ scummvm/branches/gsoc2009-draci/engines/draci/barchive.h 2009-07-17 01:05:13 UTC (rev 42554)
@@ -43,7 +43,7 @@
byte _stopper; //!< Not used in BAR files, needed for DFW
/** Releases the file data (for memory considerations) */
- void closeFile(void) {
+ void close(void) {
delete[] _data;
_data = NULL;
}
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