3 Memleaks fixed