aboutsummaryrefslogtreecommitdiff
path: root/src/input_common/main.cpp
diff options
context:
space:
mode:
authorAmeer <aj662@drexel.edu>2020-06-23 12:47:58 -0400
committerAmeer <aj662@drexel.edu>2020-06-23 12:47:58 -0400
commitd4e07fd95e999e34562428c628985a6eb1fb532d (patch)
tree06f75257618ce8250239a8cd809781adb4784dd9 /src/input_common/main.cpp
parent901bc09dd7ee1ae90e2cbbc454cd039a1825b80d (diff)
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 a9572c23cf..f13420b38f 100644
--- a/src/input_common/main.cpp
+++ b/src/input_common/main.cpp
@@ -59,7 +59,10 @@ void Shutdown() {
#endif
udp.reset();
Input::UnregisterFactory<Input::ButtonDevice>("gcpad");
+ Input::UnregisterFactory<Input::AnalogDevice>("gcpad");
+
gcbuttons.reset();
+ gcanalog.reset();
}
Keyboard* GetKeyboard() {