mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-31 03:45:38 +00:00
DInputControllerInterface: Fix crash on shutdown
This commit is contained in:
parent
9feaae1a15
commit
9845f1d76a
|
@ -20,6 +20,8 @@ DInputControllerInterface::DInputControllerInterface() = default;
|
||||||
|
|
||||||
DInputControllerInterface::~DInputControllerInterface()
|
DInputControllerInterface::~DInputControllerInterface()
|
||||||
{
|
{
|
||||||
|
m_controllers.clear();
|
||||||
|
m_dinput.Reset();
|
||||||
if (m_dinput_module)
|
if (m_dinput_module)
|
||||||
FreeLibrary(m_dinput_module);
|
FreeLibrary(m_dinput_module);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue