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

Handle user callbacks in surface_configure #4220

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

nical
Copy link
Contributor

@nical nical commented Oct 9, 2023

Checklist

  • Run cargo clippy.
  • Add change to CHANGELOG.md. See simple instructions inside file.

Connections

Fixes #4214.

Description

We have assertions in place to check that we never forget to fire a map callback (otherwise that can cause memory leaks for some users of the API). surface_configure was not handling the user callbacks returned by maintain and this PR adds that.

Testing

🦗

@nical nical requested a review from a team as a code owner October 9, 2023 07:39
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for handling this!

@cwfitzgerald cwfitzgerald merged commit 651299b into gfx-rs:trunk Oct 9, 2023
23 checks passed
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.

Surface::configure can panic with "map callback was leaked"
2 participants