diff options
-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; } }; |