Fixed memory leak
Merge pull request #99 from warebot/master

Fixed memory leak