Fixed a potential crash
Merge remote-tracking branch 'github/master'
Merge pull request #8 from FlorianDenis/master

Fixes a crash on deallocation