Fixed memmory leaks (not released objects)