memoryleak

memory leaks fixed