Revert "Wrong check"

This reverts commit f8be71adb4cf42a593cbb68f84b07f315817e52f.
Also erase() the actor array.
Introduce ReleaseAnimationFactory() and use it in Actor.