From: Ran Benita Date: Fri, 30 Mar 2012 21:02:12 +0000 (+0300) Subject: Fix bugs to allow multiple keymaps in one process X-Git-Tag: xkbcommon-0.2.0~660 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c9493795b3b632298921e6399d67b15e052f655;p=platform%2Fupstream%2Flibxkbcommon.git Fix bugs to allow multiple keymaps in one process These were several initializations that were forgotten in the previous memory leak fixes. Now several xkb_desc's can coexist (relatively) peacefully. Signed-off-by: Ran Benita [daniels: Only the atom.c is relevant with the new context API.] --- diff --git a/src/atom.c b/src/atom.c index f26e23a..d4076c4 100644 --- a/src/atom.c +++ b/src/atom.c @@ -213,4 +213,5 @@ XkbcFreeAllAtoms(void) free(nodeTable); nodeTable = NULL; lastAtom = XKB_ATOM_NONE; + tableLength = 0; }