fix recently introduced exit-time crashy bug in windows

This commit is contained in:
zeromus 2009-01-21 06:54:08 +00:00
parent 8b2ebeb2da
commit 3dc426451e
1 changed files with 7 additions and 2 deletions

View File

@ -448,9 +448,13 @@ static LPDIRECTINPUTDEVICE8 tmp_Device = NULL;
static LPDIRECTINPUTDEVICE8 tmp_Joystick = NULL;
INPUTCLASS::INPUTCLASS()
: pEffect(NULL)
, hParentWnd(0)
, inputProc(NULL)
, pKeyboard(NULL)
, pJoystick(NULL)
, pDI(NULL)
{
hParentWnd = NULL;
inputProc = NULL;
}
INPUTCLASS::~INPUTCLASS()
@ -470,6 +474,7 @@ INPUTCLASS::~INPUTCLASS()
{
pEffect->Stop();
pEffect->Release();
pEffect = NULL;
}
pJoystick->Unacquire();
pJoystick->Release();