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

2D: Fix free of invalid ID #102677

Merged
merged 1 commit into from
Feb 11, 2025
Merged

Conversation

stuartcarnie
Copy link
Contributor

@stuartcarnie stuartcarnie commented Feb 10, 2025

Release the callback for the default texture to avoid double free when destructing RendererCanvasRenderRD

Closes #102670

@akien-mga akien-mga merged commit cfe0fd6 into godotengine:master Feb 11, 2025
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@JekSun97
Copy link
Contributor

I noticed that canvas_texture_free is executed after canvas_texture_set_invalidation_callback, is that supposed to happen? Aren't we losing the reference to default_canvas_texture in canvas_texture_set_invalidation_callback?

@stuartcarnie stuartcarnie deleted the free_invalid_id branch February 12, 2025 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Attempted to free invalid ID" errors are printed when exiting a project run with Debug Canvas Item Redraw
4 participants