Skip to content

Conversation

@Sp3EdeR
Copy link
Owner

@Sp3EdeR Sp3EdeR commented Jan 24, 2026

Fixed possible undefined state after calling Reset or Inject on the singleton.

Closes #6

The instance's Emplace and SetExtern methods called the dtor, which could set the instance into an undefined state.
Moved cleanup from the dtor function into a dedicated method to avoid the dtor's object-lifetime ending effect.
@Sp3EdeR
Copy link
Owner Author

Sp3EdeR commented Jan 24, 2026

FYI @CzB404

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.

Calling Reset causes double free

2 participants