Skip to content

gc all pointers in hid_devices properly #4798

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

Merged
merged 2 commits into from
May 25, 2021
Merged

Conversation

dhalbert
Copy link
Collaborator

@dhalbert dhalbert commented May 21, 2021

Fixes #4791.
Fixes #4738.

The specialized gc routine in usb_hid was not collecting the pointers properly. It was missing the report buffers. So that storage was double-allocated.

@dhalbert dhalbert requested review from tannewt and kattni May 21, 2021 19:12
@dhalbert dhalbert marked this pull request as draft May 21, 2021 19:26
@dhalbert dhalbert marked this pull request as ready for review May 21, 2021 20:38
tannewt
tannewt previously approved these changes May 24, 2021
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks like it needs a merge.

@dhalbert
Copy link
Collaborator Author

This is ready for re-review. I just fixed the merge conflict and clarified a comment.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tannewt tannewt merged commit 7190b3e into adafruit:main May 25, 2021
@dhalbert dhalbert deleted the hid_devices-gc branch May 26, 2021 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants