diff options
Diffstat (limited to 'engines/lastexpress/resource.cpp')
-rw-r--r-- | engines/lastexpress/resource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/lastexpress/resource.cpp b/engines/lastexpress/resource.cpp index 5628d31f94..b98ddf4533 100644 --- a/engines/lastexpress/resource.cpp +++ b/engines/lastexpress/resource.cpp @@ -106,9 +106,9 @@ bool ResourceManager::loadArchive(ArchiveIndex type) { void ResourceManager::reset() { // Free the loaded archives - for (Common::Array<HPFArchive *>::iterator it = _archives.begin(); it != _archives.end(); ++it) { + for (Common::Array<HPFArchive *>::iterator it = _archives.begin(); it != _archives.end(); ++it) delete (*it); - } + _archives.clear(); } |