From 195524643a6f050e6d55f4c0000c8e39319c7b14 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 7 Apr 2006 01:20:35 +0000 Subject: Free modifier map when done with it (Coverity #823 & 824) Free Xkb keyboard description when done with it (Coverity #825) --- ChangeLog | 8 ++++++++ xset.c | 2 ++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 879a19c..45bc67e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-04-06 Alan Coopersmith + + * xset.c (set_lock): + Free modifier map when done with it (Coverity #823 & 824) + + * xset.c (xkbset_repeatrate): + Free Xkb keyboard description when done with it (Coverity #825) + 2005-12-20 Kevin E. Martin * configure.ac: diff --git a/xset.c b/xset.c index 9fd75cf..a77d977 100644 --- a/xset.c +++ b/xset.c @@ -1141,6 +1141,7 @@ xkbset_repeatrate(Display *dpy, int delay, int interval) xkb->ctrls->repeat_delay = delay; xkb->ctrls->repeat_interval = interval; XkbSetControls(dpy, XkbRepeatKeysMask, xkb); + XkbFreeKeyboard(xkb, 0, True); } #endif @@ -1222,6 +1223,7 @@ set_lock(Display *dpy, Bool onoff) else mods = XDeleteModifiermapEntry(mods, (KeyCode) XK_Caps_Lock, LockMapIndex); XSetModifierMapping(dpy, mods); + XFreeModifiermap(mods); return; } -- cgit v1.2.3