Memory's leak problem in StringStream

This patch should correct the problem of memory's leak in StringStream as reported by Overdrivr.