Skip to content

fix: using correct deconstructor for WindowsSystemInputDriver - #19

Open
TKFRvisionOfficial wants to merge 1 commit into
itsmeft24:mainfrom
TKFRvisionOfficial:bug/crash-on-close
Open

fix: using correct deconstructor for WindowsSystemInputDriver#19
TKFRvisionOfficial wants to merge 1 commit into
itsmeft24:mainfrom
TKFRvisionOfficial:bug/crash-on-close

Conversation

@TKFRvisionOfficial

Copy link
Copy Markdown

Before this change the game would crash when you tried to close it. Since the constructor call to WinArcadeInputDriver was overwritten with the one from WindowsSystemInputDriver, but the destructor (::Shutdown) wasn't, the WinArcadeInputDriver destructor tried to destruct a WindowsSystemInputDriver instance and triggered a memory violation in the process.

Before this change the game would crash when you tried to close it. Since the constructor call to WinArcadeInputDriver was overwritten with the one from WindowsSystemInputDriver, but the destructor (::Shutdown) wasn't, the WinArcadeInputDriver destructor tried to destruct a WindowsSystemInputDriver Instance and triggered a memory violation in the process.
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.

1 participant