20131120 fix some memory leak bug.