Fix issue #101 (leaking global variable)
Merge pull request #102 from theghostbel/patch-5

Fix issue #101 (leaking global variable)