From d4e07fd95e999e34562428c628985a6eb1fb532d Mon Sep 17 00:00:00 2001
From: Ameer <aj662@drexel.edu>
Date: Tue, 23 Jun 2020 12:47:58 -0400
Subject: Fix deallocation of GC Adapter

---
 src/input_common/main.cpp | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'src/input_common/main.cpp')

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() {
-- 
cgit v1.2.3-70-g09d2