diff options
| author | 2016-03-30 17:24:29 -0400 | |
|---|---|---|
| committer | 2016-03-30 17:24:29 -0400 | |
| commit | 2b0cc65dba2465218cdfa0e88e37d9f3d11ff203 (patch) | |
| tree | 8341b6b1e9aa235c9914b17c5488cf0b17d1b4d2 /src/osd/modules/input/input_sdl.cpp | |
| parent | b755be89a626254020b43bf9255817c3ada524bc (diff) | |
Unsubscribe SDL input modules from events on exit.
Diffstat (limited to 'src/osd/modules/input/input_sdl.cpp')
| -rw-r--r-- | src/osd/modules/input/input_sdl.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/osd/modules/input/input_sdl.cpp b/src/osd/modules/input/input_sdl.cpp index 9ea26733f60..2c5b2e45a8c 100644 --- a/src/osd/modules/input/input_sdl.cpp +++ b/src/osd/modules/input/input_sdl.cpp @@ -435,6 +435,14 @@ public: } } + void exit() override + { + // unsubscribe for events + sdl_event_manager::instance().unsubscribe(this); + + input_module_base::exit(); + } + void before_poll(running_machine& machine) override { // Tell the event manager to process events and push them to the devices |
