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 #79551 #79566

Merged
merged 3 commits into from
Feb 11, 2025
Merged

Fix #79551 #79566

merged 3 commits into from
Feb 11, 2025

Conversation

alef
Copy link
Contributor

@alef alef commented Feb 6, 2025

Summary

Bugfixes "#79551 Crash calling destructor twice"

Purpose of change

Rename the destructor to deinit.

Describe the solution

Avoid calling manually this destructor because it will called again at program exit and try to deallocate internal components on the heap twice.

Describe alternatives you've considered

Testing

✔ Tested on WSL/Ubuntu and Windows

Additional context

Refactor debug file management by replacing destructor call with explicit deinitialization method
@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels Feb 6, 2025
src/debug.cpp Show resolved Hide resolved
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Feb 7, 2025
alef and others added 2 commits February 7, 2025 21:08
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions github-actions bot added astyled astyled PR, label is assigned by github actions and removed astyled astyled PR, label is assigned by github actions labels Feb 7, 2025
@github-actions github-actions bot added BasicBuildPassed This PR builds correctly, label assigned by github actions and removed BasicBuildPassed This PR builds correctly, label assigned by github actions labels Feb 7, 2025
@Maleclypse Maleclypse merged commit 694900a into CleverRaven:master Feb 11, 2025
23 of 27 checks passed
@alef alef deleted the fix-79551 branch February 12, 2025 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants