SWORD25: Another memory leak fix

svn-id: r53327
This commit is contained in:
Paul Gilbert 2010-09-07 09:03:23 +00:00 committed by Eugene Sandulenko
parent 5d7922d052
commit 49decb9dc5

View File

@ -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) {