[Scummvm-cvs-logs] scummvm master -> cc0b88cc532d7708e13a6a9e22da2595223b8e49
dreammaster
dreammaster at scummvm.org
Mon Mar 9 04:42:27 CET 2015
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:
cc0b88cc53 MADS: Fix leak of SpriteAsset instances
Commit: cc0b88cc532d7708e13a6a9e22da2595223b8e49
https://github.com/scummvm/scummvm/commit/cc0b88cc532d7708e13a6a9e22da2595223b8e49
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-03-08T23:40:50-04:00
Commit Message:
MADS: Fix leak of SpriteAsset instances
Changed paths:
engines/mads/sprites.cpp
diff --git a/engines/mads/sprites.cpp b/engines/mads/sprites.cpp
index aa73fce..19742e2 100644
--- a/engines/mads/sprites.cpp
+++ b/engines/mads/sprites.cpp
@@ -402,6 +402,7 @@ void SpriteSets::remove(int idx) {
(*this)[idx] = nullptr;
} else {
do {
+ delete (*this)[size() - 1];
remove_at(size() - 1);
} while (size() > 0 && (*this)[size() - 1] == nullptr);
}
More information about the Scummvm-git-logs
mailing list