demonstrating the leak
fix leak

this parameter isn't used anyway
dead code: stateReset is never set to True
dead code: stateStep is never set to True
dead code: stateRun is never set to False
dead code: stateStepsPerFrame is never read
Merge pull request #10 from gelisam/leak-demo

Fix leak