- fix crash when close the input config dialog and on exit (on systems where no feedback game devices);
This commit is contained in:
mtabachenko 2009-01-18 08:07:53 +00:00
parent 45ee9f6bb5
commit c4a0542ad3
1 changed files with 5 additions and 2 deletions

View File

@ -465,9 +465,12 @@ INPUTCLASS::~INPUTCLASS()
}
if (pJoystick != NULL)
{
if (pEffect)
{
pEffect->Stop();
pEffect->Release();
}
pJoystick->Unacquire();
pJoystick->Release();
pJoystick = NULL;