Ghost: Fix memory leak happening with keyboard mapping access

So far only noticed system de-initialization doesn't perform full
object free. So rather harmless but yet stupid.
This commit is contained in:
Sergey Sharybin 2018-07-16 17:32:57 +02:00
parent 1e1c858cf1
commit e6af8758c8
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ GHOST_SystemX11::
#endif /* WITH_X11_XINPUT */
if (m_xkb_descr) {
XkbFreeNames(m_xkb_descr, XkbKeyNamesMask, false);
XkbFreeKeyboard (m_xkb_descr, XkbAllComponentsMask, true);
}
XCloseDisplay(m_display);