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,6 +146,8 @@ extern "C" {
DllExport void __stdcall Release()
{
_shortcutKeyHandler.reset();
_console->Stop(true);
_renderer.reset();
@ -154,8 +156,6 @@ extern "C" {
_console->Release();
_console.reset();
_shortcutKeyHandler.reset();
}
DllExport INotificationListener* __stdcall RegisterNotificationCallback(NotificationListenerCallback callback)