let animation objects delete themselves after they are not being used anymore
PS:
I don't like that we create new animation objects every single time before a page transition is done, I'm sure that can be done in a nicer way.
But at least we're not keeping those non-reused objects around forever now...
Hedgewars - a turn based strategy game.
Distributed under the terms of the GNU GPL licence.
Images and sounds are distributed under the terms of the GNU FDL licence.
Source:
Copyright 2004-2011 Andrey Korotaev <unC0Rr@gmail.com>
Portions copyright 2006-2008 Igor Ulyanov aka Displacer <iulyanov@gmail.com>