[FIX] global var leaks
Merge pull request #2 from geertweening/leak-fix

[FIX] global var leaks