From Mathias Froehlich, "This frees some memory that is allocated by the X11 functions."

This commit is contained in:
Robert Osfield 2009-05-28 14:15:36 +00:00
parent bf69b168b4
commit 4f0d658ce9

View File

@ -1407,6 +1407,8 @@ void GraphicsWindowX11::rescanModifierMapping()
break; break;
} }
} }
XFree(mkm->modifiermap);
XFree(mkm);
} }
void GraphicsWindowX11::flushKeyEvents() void GraphicsWindowX11::flushKeyEvents()
@ -1426,6 +1428,8 @@ void GraphicsWindowX11::getModifierMap(char* keymap) const
{ {
if (*m) keyMapSetKey(keymap, *m); if (*m) keyMapSetKey(keymap, *m);
} }
XFree(mkm->modifiermap);
XFree(mkm);
} }
int GraphicsWindowX11::getModifierMask() const int GraphicsWindowX11::getModifierMask() const
@ -1440,6 +1444,8 @@ int GraphicsWindowX11::getModifierMask() const
mask |= 1 << (i / mkm->max_keypermod); mask |= 1 << (i / mkm->max_keypermod);
} }
} }
XFree(mkm->modifiermap);
XFree(mkm);
return mask; return mask;
} }