Skip to content

Fix dangling singleton pointer after deinit #1638

Merged
Bromeon merged 1 commit into
masterfrom
bugfix/singleton-dangling-after-deinit
Jun 16, 2026
Merged

Fix dangling singleton pointer after deinit #1638
Bromeon merged 1 commit into
masterfrom
bugfix/singleton-dangling-after-deinit

Conversation

@Bromeon

@Bromeon Bromeon commented Jun 16, 2026

Copy link
Copy Markdown
Member

Accessing a singleton after it was unloaded was possible and resulted in undefined behavior.

I split this from #1636, as it's unrelated to the performance improvements there -- the bug existed before caching.

@Bromeon Bromeon added bug c: core Core components ub Undefined behavior c: engine Godot classes (nodes, resources, ...) and removed c: core Core components labels Jun 16, 2026
@GodotRust

Copy link
Copy Markdown

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-1638

@Bromeon Bromeon force-pushed the bugfix/singleton-dangling-after-deinit branch from 0612e4a to 03d2278 Compare June 16, 2026 17:32
@Bromeon Bromeon added this pull request to the merge queue Jun 16, 2026
Merged via the queue into master with commit 45e4711 Jun 16, 2026
23 checks passed
@Bromeon Bromeon deleted the bugfix/singleton-dangling-after-deinit branch June 16, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug c: engine Godot classes (nodes, resources, ...) ub Undefined behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants