Do not double free when using destroy method
Merge pull request #7 from zaro/stable

Do not double free when using destroy method