diff --git a/src/frontend-common/dinput_controller_interface.cpp b/src/frontend-common/dinput_controller_interface.cpp index 5aed98cce..cbcf6bf00 100644 --- a/src/frontend-common/dinput_controller_interface.cpp +++ b/src/frontend-common/dinput_controller_interface.cpp @@ -20,6 +20,8 @@ DInputControllerInterface::DInputControllerInterface() = default; DInputControllerInterface::~DInputControllerInterface() { + m_controllers.clear(); + m_dinput.Reset(); if (m_dinput_module) FreeLibrary(m_dinput_module); }