#108 Memory leaks when calling destroy