Fixed Memory leaks and got object placement perfect