From 009aa3dcb90210689c1c25bbe70d03f979aadeea Mon Sep 17 00:00:00 2001 From: Danila Malyutin Date: Sat, 14 Nov 2015 19:34:20 +0300 Subject: [PATCH] Fix crash on exit in some tests It started occurring recently though the problem seems to be old. Only KeyboardHandlerBase is the fix, the MouseHandler one is to be safe. --- rpcs3/Emu/Io/KeyboardHandler.h | 1 + rpcs3/Emu/Io/MouseHandler.h | 1 + 2 files changed, 2 insertions(+) diff --git a/rpcs3/Emu/Io/KeyboardHandler.h b/rpcs3/Emu/Io/KeyboardHandler.h index 236896fb2d..04d143dd01 100644 --- a/rpcs3/Emu/Io/KeyboardHandler.h +++ b/rpcs3/Emu/Io/KeyboardHandler.h @@ -265,6 +265,7 @@ protected: public: virtual void Init(const u32 max_connect)=0; virtual void Close()=0; + virtual ~KeyboardHandlerBase() = default; void Key(const u32 code, bool pressed) { diff --git a/rpcs3/Emu/Io/MouseHandler.h b/rpcs3/Emu/Io/MouseHandler.h index 9eba9c6ba0..7c472c9d5e 100644 --- a/rpcs3/Emu/Io/MouseHandler.h +++ b/rpcs3/Emu/Io/MouseHandler.h @@ -106,6 +106,7 @@ protected: public: virtual void Init(const u32 max_connect)=0; virtual void Close()=0; + virtual ~MouseHandlerBase() = default; void Button(u8 button, bool pressed) {