mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
Fixed mem leak caused by not releasing pad & wiimote plugin when shutdown
Fixed main frame crash after shutdown git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4755 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
97779ea295
commit
151ff28ab7
10 changed files with 71 additions and 96 deletions
|
@ -714,7 +714,6 @@ void Shutdown()
|
|||
g_EmulatorRunning = false;
|
||||
|
||||
#ifdef _WIN32
|
||||
dinput.Free();
|
||||
// Kill xpad rumble
|
||||
XINPUT_VIBRATION vib;
|
||||
vib.wLeftMotorSpeed = 0;
|
||||
|
@ -722,6 +721,7 @@ void Shutdown()
|
|||
for (int i = 0; i < 4; i++)
|
||||
if (pad[i].bRumble)
|
||||
XInputSetState(pad[i].XPadPlayer, &vib);
|
||||
dinput.Free();
|
||||
#endif
|
||||
SaveConfig();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue