Fixed crash when exiting emulator (shortcut handler must be deleted before deleting the key manager)

This commit is contained in:
Sour 2019-03-22 21:31:07 -04:00
parent 0d0f5e6e58
commit 7e091529aa

View file

@ -146,16 +146,16 @@ extern "C" {
DllExport void __stdcall Release() DllExport void __stdcall Release()
{ {
_shortcutKeyHandler.reset();
_console->Stop(true); _console->Stop(true);
_renderer.reset(); _renderer.reset();
_soundManager.reset(); _soundManager.reset();
_keyManager.reset(); _keyManager.reset();
_console->Release(); _console->Release();
_console.reset(); _console.reset();
_shortcutKeyHandler.reset();
} }
DllExport INotificationListener* __stdcall RegisterNotificationCallback(NotificationListenerCallback callback) DllExport INotificationListener* __stdcall RegisterNotificationCallback(NotificationListenerCallback callback)