summaryrefslogtreecommitdiff
path: root/src/input_common/main.cpp
diff options
context:
space:
mode:
authorGravatar Ameer2020-06-23 12:47:58 -0400
committerGravatar Ameer2020-06-23 12:47:58 -0400
commitd4e07fd95e999e34562428c628985a6eb1fb532d (patch)
tree06f75257618ce8250239a8cd809781adb4784dd9 /src/input_common/main.cpp
parentSmall quality of life indication that mapped button is GC (diff)
downloadyuzu-d4e07fd95e999e34562428c628985a6eb1fb532d.tar.gz
yuzu-d4e07fd95e999e34562428c628985a6eb1fb532d.tar.xz
yuzu-d4e07fd95e999e34562428c628985a6eb1fb532d.zip
Fix deallocation of GC Adapter
Diffstat (limited to 'src/input_common/main.cpp')
-rw-r--r--src/input_common/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input_common/main.cpp b/src/input_common/main.cpp
index a9572c23c..f13420b38 100644
--- a/src/input_common/main.cpp
+++ b/src/input_common/main.cpp
@@ -59,7 +59,10 @@ void Shutdown() {
59#endif 59#endif
60 udp.reset(); 60 udp.reset();
61 Input::UnregisterFactory<Input::ButtonDevice>("gcpad"); 61 Input::UnregisterFactory<Input::ButtonDevice>("gcpad");
62 Input::UnregisterFactory<Input::AnalogDevice>("gcpad");
63
62 gcbuttons.reset(); 64 gcbuttons.reset();
65 gcanalog.reset();
63} 66}
64 67
65Keyboard* GetKeyboard() { 68Keyboard* GetKeyboard() {