mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 13:20:27 -06:00
Bunch of tiny memory leaks fixed and cleanup, フウ〜!
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5056 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -169,10 +169,12 @@ void DllConfig(HWND _hParent)
|
||||
#if defined(HAVE_WX) && HAVE_WX
|
||||
if (!m_ConfigFrame)
|
||||
{
|
||||
m_ConfigFrame = new GCPadConfigDialog(GetParentedWxWindow(_hParent));
|
||||
wxWindow *frame = GetParentedWxWindow(_hParent);
|
||||
m_ConfigFrame = new GCPadConfigDialog(frame);
|
||||
m_ConfigFrame->ShowModal();
|
||||
m_ConfigFrame->Destroy();
|
||||
m_ConfigFrame = NULL;
|
||||
delete frame;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@ -617,19 +619,19 @@ bool IsKey(int Key)
|
||||
if (MapKey < 256)
|
||||
{
|
||||
Ret = GetAsyncKeyState(MapKey); // Keyboard (Windows)
|
||||
}
|
||||
}
|
||||
else if (MapKey < 0x1100)
|
||||
#elif defined HAVE_X11 && HAVE_X11
|
||||
#elif defined HAVE_X11 && HAVE_X11
|
||||
if (HaveFocus() && (MapKey < 256 || MapKey > 0xf000))
|
||||
{
|
||||
char keys[32];
|
||||
KeyCode keyCode;
|
||||
XQueryKeymap(GCdisplay, keys);
|
||||
keyCode = XKeysymToKeycode(GCdisplay, MapKey);
|
||||
Ret = (keys[keyCode/8] & (1 << (keyCode%8))); // Keyboard (Linux)
|
||||
}
|
||||
char keys[32];
|
||||
KeyCode keyCode;
|
||||
XQueryKeymap(GCdisplay, keys);
|
||||
keyCode = XKeysymToKeycode(GCdisplay, MapKey);
|
||||
Ret = (keys[keyCode/8] & (1 << (keyCode%8))); // Keyboard (Linux)
|
||||
}
|
||||
else if (MapKey < 0x1100)
|
||||
#else
|
||||
#else
|
||||
if (MapKey < 0x1100)
|
||||
#endif
|
||||
{
|
||||
|
Reference in New Issue
Block a user