Fix memory leak after unstuck
Merge pull request #161 from WouterHuysentruit/master

Fix memory leak on unstuck