aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2010-09-07 09:03:23 +0000
committerEugene Sandulenko2010-10-12 23:39:15 +0000
commit49decb9dc52eae5a43369d274ae2bee6ec43c1fe (patch)
treeaab90e7ab2f79781c371b115bdafc3bf8e1cb403
parent5d7922d052c93b5536e90c00dd69df61d898a190 (diff)
downloadscummvm-rg350-49decb9dc52eae5a43369d274ae2bee6ec43c1fe.tar.gz
scummvm-rg350-49decb9dc52eae5a43369d274ae2bee6ec43c1fe.tar.bz2
scummvm-rg350-49decb9dc52eae5a43369d274ae2bee6ec43c1fe.zip
SWORD25: Another memory leak fix
svn-id: r53327
-rw-r--r--engines/sword25/package/scummvmpackagemanager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sword25/package/scummvmpackagemanager.cpp b/engines/sword25/package/scummvmpackagemanager.cpp
index ec3622a3f5..f58bb3960d 100644
--- a/engines/sword25/package/scummvmpackagemanager.cpp
+++ b/engines/sword25/package/scummvmpackagemanager.cpp
@@ -59,6 +59,11 @@ ScummVMPackageManager::ScummVMPackageManager(Kernel *kernelPtr) :
}
ScummVMPackageManager::~ScummVMPackageManager() {
+ // Free the package list
+ Common::List<ArchiveEntry *>::iterator i;
+ for (i = _archiveList.begin(); i != _archiveList.end(); ++i)
+ delete *i;
+
}
Service *ScummVMPackageManager_CreateObject(Kernel *kernelPtr) {