fix a memory leak
Merge pull request #33 from uxyheaven/master

fix a memory leak