Many Memory leaks fixed.