Fixed mem leak.

Author:yangyingchao, 2013-02-27