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

misc: fix crash when quitting consecutive games #59

Merged
merged 1 commit into from
Dec 7, 2024

Conversation

jsm174
Copy link
Contributor

@jsm174 jsm174 commented Dec 6, 2024

As we finish up development of the Android Visual Pinball app, we noticed a crash in libserum.

To reproduce the issue:

Play Iron Man, Quit Iron Man, Play Diner, Quit Diner, crash

image

The memory was being freed, but the pointer still had the old reference in it instead of null.

This never was an issue for standalone before, because it was always run and done.

But the mobile apps, and I suspect Windows, have this issue since your not exiting the application after each table.

@mkalkbrenner mkalkbrenner self-requested a review December 7, 2024 00:04
Copy link
Collaborator

@mkalkbrenner mkalkbrenner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes seem to be correct.
Nevertheless @zesinger should test on Windows.

@zesinger zesinger merged commit 03ef7b5 into zesinger:main Dec 7, 2024
12 checks passed
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.

3 participants