diff --git a/engines/sword25/package/scummvmpackagemanager.cpp b/engines/sword25/package/scummvmpackagemanager.cpp index ec3622a3f5b..f58bb3960d3 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::iterator i; + for (i = _archiveList.begin(); i != _archiveList.end(); ++i) + delete *i; + } Service *ScummVMPackageManager_CreateObject(Kernel *kernelPtr) {