diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-11-27 21:39:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-27 21:39:24 +0100 |
commit | a2fde04da9630a5bf4948a0d2798d969956eb389 (patch) | |
tree | 9aa1133d4b1635e0ccb111c2a73c01c1d044a148 /src/input_common/main.cpp | |
parent | Merge pull request #9323 from german77/intructions (diff) | |
parent | yuzu-cmd: Fix input callback crash on close (diff) | |
download | yuzu-a2fde04da9630a5bf4948a0d2798d969956eb389.tar yuzu-a2fde04da9630a5bf4948a0d2798d969956eb389.tar.gz yuzu-a2fde04da9630a5bf4948a0d2798d969956eb389.tar.bz2 yuzu-a2fde04da9630a5bf4948a0d2798d969956eb389.tar.lz yuzu-a2fde04da9630a5bf4948a0d2798d969956eb389.tar.xz yuzu-a2fde04da9630a5bf4948a0d2798d969956eb389.tar.zst yuzu-a2fde04da9630a5bf4948a0d2798d969956eb389.zip |
Diffstat (limited to 'src/input_common/main.cpp')
-rw-r--r-- | src/input_common/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/input_common/main.cpp b/src/input_common/main.cpp index b2064ef95..76df133f3 100644 --- a/src/input_common/main.cpp +++ b/src/input_common/main.cpp @@ -138,6 +138,16 @@ struct InputSubsystem::Impl { Common::Input::UnregisterFactory<Common::Input::OutputDevice>(tas_input->GetEngineName()); tas_input.reset(); + Common::Input::UnregisterFactory<Common::Input::InputDevice>(camera->GetEngineName()); + Common::Input::UnregisterFactory<Common::Input::OutputDevice>(camera->GetEngineName()); + camera.reset(); + + Common::Input::UnregisterFactory<Common::Input::InputDevice>( + virtual_amiibo->GetEngineName()); + Common::Input::UnregisterFactory<Common::Input::OutputDevice>( + virtual_amiibo->GetEngineName()); + virtual_amiibo.reset(); + #ifdef HAVE_SDL2 Common::Input::UnregisterFactory<Common::Input::InputDevice>(sdl->GetEngineName()); Common::Input::UnregisterFactory<Common::Input::OutputDevice>(sdl->GetEngineName()); |