mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
Fixed two mismatched (de)allocations in BArchive and BAFile.
svn-id: r42247
This commit is contained in:
parent
dd955bb08e
commit
68ec1350c0
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -44,7 +44,7 @@ struct BAFile {
|
||||
|
||||
/** Releases the file data (for memory considerations) */
|
||||
void closeFile(void) {
|
||||
delete _data;
|
||||
delete[] _data;
|
||||
_data = NULL;
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user