Fix memory leak with target animation in Avatar.cpp