Fix problem with generated disposes
Merge pull request #4 from distantcam/master

Fix problem with generated disposes