DInputControllerInterface: Fix crash on shutdown

This commit is contained in:
Connor McLaughlin 2021-06-03 14:04:12 +10:00
parent 9feaae1a15
commit 9845f1d76a
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ DInputControllerInterface::DInputControllerInterface() = default;
DInputControllerInterface::~DInputControllerInterface()
{
m_controllers.clear();
m_dinput.Reset();
if (m_dinput_module)
FreeLibrary(m_dinput_module);
}