aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress/resource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lastexpress/resource.cpp')
-rw-r--r--engines/lastexpress/resource.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/lastexpress/resource.cpp b/engines/lastexpress/resource.cpp
index 57bc12a185..5a77b23602 100644
--- a/engines/lastexpress/resource.cpp
+++ b/engines/lastexpress/resource.cpp
@@ -30,6 +30,7 @@
#include "lastexpress/data/font.h"
#include "lastexpress/debug.h"
+#include "lastexpress/helpers.h"
#include "common/debug.h"
#include "common/file.h"
@@ -107,7 +108,7 @@ bool ResourceManager::loadArchive(ArchiveIndex type) {
void ResourceManager::reset() {
// Free the loaded archives
for (Common::Array<HPFArchive *>::iterator it = _archives.begin(); it != _archives.end(); ++it)
- delete (*it);
+ SAFE_DELETE(*it);
_archives.clear();
}