aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorRobert Špalek2009-11-26 00:09:17 +0000
committerRobert Špalek2009-11-26 00:09:17 +0000
commit4e830d821cadbf1e29d2fe212a33e23770a890f8 (patch)
tree011dbf056f88b5bc6b9b3e1ab12feeb474acbd09 /engines
parent611a58f19c8dbc47a9b350b24e58203d171c7e96 (diff)
downloadscummvm-rg350-4e830d821cadbf1e29d2fe212a33e23770a890f8.tar.gz
scummvm-rg350-4e830d821cadbf1e29d2fe212a33e23770a890f8.tar.bz2
scummvm-rg350-4e830d821cadbf1e29d2fe212a33e23770a890f8.zip
Fix SIGSEGV found by ValGrind
svn-id: r46142
Diffstat (limited to 'engines')
-rw-r--r--engines/draci/animation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/draci/animation.cpp b/engines/draci/animation.cpp
index 4012719add..48d3246a8e 100644
--- a/engines/draci/animation.cpp
+++ b/engines/draci/animation.cpp
@@ -406,11 +406,11 @@ void AnimationManager::deleteAnimation(Animation *anim) {
// Remember index of the deleted animation
index = (*it)->getIndex();
+ debugC(3, kDraciAnimationDebugLevel, "Deleting animation %d...", anim->getID());
+
delete *it;
_animations.erase(it);
- debugC(3, kDraciAnimationDebugLevel, "Deleting animation %d...", anim->getID());
-
break;
}
}