Add destructor to fix memory leak #14

merged 1 commit into from Feb 2, 2016


None yet

2 participants

mikepb commented Feb 2, 2016

I noticed that class Annoy did not define a destructor. This pull requests adds a static destructor to delete the ptr member.

@eddelbuettel eddelbuettel merged commit 4f18ff2 into eddelbuettel:master Feb 2, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment