[Scummvm-cvs-logs] scummvm master -> c96247ca573fe315f92473331e8276e328daab03
dreammaster
dreammaster at scummvm.org
Sun Aug 31 14:54:51 CEST 2014
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:
c96247ca57 MADS: Fix some memory leaks
Commit: c96247ca573fe315f92473331e8276e328daab03
https://github.com/scummvm/scummvm/commit/c96247ca573fe315f92473331e8276e328daab03
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2014-08-31T08:53:50-04:00
Commit Message:
MADS: Fix some memory leaks
Changed paths:
engines/mads/nebular/nebular_scenes.cpp
engines/mads/scene.cpp
diff --git a/engines/mads/nebular/nebular_scenes.cpp b/engines/mads/nebular/nebular_scenes.cpp
index c71512e..b5e2491 100644
--- a/engines/mads/nebular/nebular_scenes.cpp
+++ b/engines/mads/nebular/nebular_scenes.cpp
@@ -331,7 +331,7 @@ void SceneInfoNebular::loadCodes(MSurface &depthSurface, Common::SeekableReadStr
byte runValue = stream->readByte();
// Write out the run length
- Common::fill(destP, destP + runLength, runValue);
+ Common::fill(destP, MIN(endP, destP + runLength), runValue);
destP += runLength;
// Get the next run length
diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp
index 1f95749..cb68d38 100644
--- a/engines/mads/scene.cpp
+++ b/engines/mads/scene.cpp
@@ -82,6 +82,7 @@ Scene::Scene(MADSEngine *vm)
Scene::~Scene() {
delete _sceneLogic;
delete _sceneInfo;
+ delete _animationData;
}
void Scene::clearVocab() {
More information about the Scummvm-git-logs
mailing list