diff options
author | Paul Gilbert | 2010-09-07 09:03:23 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 23:39:15 +0000 |
commit | 49decb9dc52eae5a43369d274ae2bee6ec43c1fe (patch) | |
tree | aab90e7ab2f79781c371b115bdafc3bf8e1cb403 | |
parent | 5d7922d052c93b5536e90c00dd69df61d898a190 (diff) | |
download | scummvm-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.cpp | 5 |
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) { |