Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

destructor bug fix to the pull request #68 / issue #67 #69

Merged
merged 2 commits into from
Feb 11, 2022

Conversation

adams13x13
Copy link
Contributor

In the destructor (Adafruit_BMP280::~Adafruit_BMP280), delete the objects only when they exist as mentioned in this comment.

In addition, I have placed the destructor after all constructors for the better code readability.

@ladyada ladyada merged commit 33ecc06 into adafruit:master Feb 11, 2022
@ladyada
Copy link
Member

ladyada commented Feb 11, 2022

thnx!

@caternuson
Copy link
Contributor

double thanks. that was bugging me too. not sure how it worked in their testing.
#68 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants