Added precistion manipulator to ostringstream.
Fixed a bug of memory leak.