Fixing leak in animation chain.
Merge pull request #170 from atomicobject/master

Fixes memory leak in AnimationChain