[Scummvm-cvs-logs] SF.net SVN: scummvm:[46142] scummvm/trunk/engines/draci/animation.cpp
spalek at users.sourceforge.net
spalek at users.sourceforge.net
Thu Nov 26 01:09:17 CET 2009
Revision: 46142
http://scummvm.svn.sourceforge.net/scummvm/?rev=46142&view=rev
Author: spalek
Date: 2009-11-26 00:09:17 +0000 (Thu, 26 Nov 2009)
Log Message:
-----------
Fix SIGSEGV found by ValGrind
Modified Paths:
--------------
scummvm/trunk/engines/draci/animation.cpp
Modified: scummvm/trunk/engines/draci/animation.cpp
===================================================================
--- scummvm/trunk/engines/draci/animation.cpp 2009-11-25 23:17:16 UTC (rev 46141)
+++ scummvm/trunk/engines/draci/animation.cpp 2009-11-26 00:09:17 UTC (rev 46142)
@@ -406,11 +406,11 @@
// 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;
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list