Fix memory leak (resolves #69)
Merge pull request #71 from z2v/bug/69-memory-leak

Fix memory leak (resolves #69)