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

Fix invalid read/write #626

Merged
merged 1 commit into from
Nov 29, 2024
Merged

Fix invalid read/write #626

merged 1 commit into from
Nov 29, 2024

Conversation

schaumb
Copy link
Contributor

@schaumb schaumb commented Nov 29, 2024

This is because the control structure is accessed by reference, not through shared_ptr. When the update is called on the control structure (an Animator object), the registered callback can cause the animator to create a new Animator object that replaces the original.

@schaumb schaumb requested a review from simzer November 29, 2024 15:36
@schaumb schaumb merged commit 2952c2c into main Nov 29, 2024
1 check passed
@schaumb schaumb deleted the valgrind_fix branch November 29, 2024 17:02
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.

2 participants