[TIMOB-15383] Fixed memory leak in animation