Fixed memory leak and fixed C::B project.