removed memory leak from update()
Merge pull request #1 from cr1tterp0wer/master

removed memory leak from update()