[Scummvm-git-logs] scummvm master -> 4cb57c3c411ed7318e03f9fb416c8c935494e793
athrxx
noreply at scummvm.org
Wed Aug 31 13:58:37 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
4cb57c3c41 SCUMM: fix mem leak
Commit: 4cb57c3c411ed7318e03f9fb416c8c935494e793
https://github.com/scummvm/scummvm/commit/4cb57c3c411ed7318e03f9fb416c8c935494e793
Author: athrxx (athrxx at scummvm.org)
Date: 2022-08-31T15:57:49+02:00
Commit Message:
SCUMM: fix mem leak
Changed paths:
engines/scumm/scumm.cpp
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp
index de0c60ada8c..e536cd9b50a 100644
--- a/engines/scumm/scumm.cpp
+++ b/engines/scumm/scumm.cpp
@@ -1417,9 +1417,11 @@ void ScummEngine_v7::setupScumm(const Common::String &macResourceFile) {
// COMI demo is excluded from the count since it appears it can't be compressed
// DIG demo uses raw VOC files for speech instead of a MONSTER.SOU file
if ((_game.id == GID_CMI || _game.id == GID_DIG) && !(_game.features & GF_DEMO)) {
- BundleMgr *bnd = new BundleMgr(new BundleDirCache());
+ BundleDirCache *ch = new BundleDirCache();
+ BundleMgr *bnd = new BundleMgr(ch);
filesAreCompressed |= bnd->isExtCompBun(_game.id);
delete bnd;
+ delete ch;
} else if (_game.id == GID_FT) {
filesAreCompressed |= _sound->isSfxFileCompressed();
}
More information about the Scummvm-git-logs
mailing list