Add destructor to fix memory leak #14

Merged
merged 1 commit into from Feb 2, 2016

Projects

None yet

2 participants

@mikepb
Contributor
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
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment