Fixed possible memory leak
Merge pull request #180 from TsudaKageyu/master

Fixed possible memory leak