diff options
| author | Denis Kasak | 2009-07-07 21:46:34 +0000 | 
|---|---|---|
| committer | Denis Kasak | 2009-07-07 21:46:34 +0000 | 
| commit | 68ec1350c057c8342f6bf280f8a713922ce05a3d (patch) | |
| tree | 50f8499971ea429f86e6000d600ac85377a63862 | |
| parent | dd955bb08e57a13476afa4f852a97764fe6ad2a6 (diff) | |
| download | scummvm-rg350-68ec1350c057c8342f6bf280f8a713922ce05a3d.tar.gz scummvm-rg350-68ec1350c057c8342f6bf280f8a713922ce05a3d.tar.bz2 scummvm-rg350-68ec1350c057c8342f6bf280f8a713922ce05a3d.zip | |
Fixed two mismatched (de)allocations in BArchive and BAFile.
svn-id: r42247
| -rw-r--r-- | engines/draci/barchive.cpp | 2 | ||||
| -rw-r--r-- | engines/draci/barchive.h | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/engines/draci/barchive.cpp b/engines/draci/barchive.cpp index cd0d4b2172..cbe019f8b2 100644 --- a/engines/draci/barchive.cpp +++ b/engines/draci/barchive.cpp @@ -251,7 +251,7 @@ void BArchive::closeArchive(void) {  	for (unsigned int i = 0; i < _fileCount; ++i) {  		if (_files[i]._data) { -			delete _files[i]._data;  +			delete[] _files[i]._data;   		}  	} diff --git a/engines/draci/barchive.h b/engines/draci/barchive.h index 185cfcb38d..5a4f5155f7 100644 --- a/engines/draci/barchive.h +++ b/engines/draci/barchive.h @@ -44,7 +44,7 @@ struct BAFile {  	/** Releases the file data (for memory considerations) */  	void closeFile(void) {   -		delete _data; +		delete[] _data;  		_data = NULL;  	}  }; | 
