winport:
- fix crash when close the input config dialog and on exit (on systems where no feedback game devices);
This commit is contained in:
parent
45ee9f6bb5
commit
c4a0542ad3
|
@ -466,8 +466,11 @@ INPUTCLASS::~INPUTCLASS()
|
|||
|
||||
if (pJoystick != NULL)
|
||||
{
|
||||
pEffect->Stop();
|
||||
pEffect->Release();
|
||||
if (pEffect)
|
||||
{
|
||||
pEffect->Stop();
|
||||
pEffect->Release();
|
||||
}
|
||||
pJoystick->Unacquire();
|
||||
pJoystick->Release();
|
||||
pJoystick = NULL;
|
||||
|
|
Loading…
Reference in New Issue