Fix minor memory leak
Merge pull request #58 from wpreul/master

Fix for creating useless new objects