Fixed memory leak in FlyingAIComponent