main;BaseLoop: possible memory leak fixed.