Don't leak KeyNamesInfo
authorRan Benita <ran234@gmail.com>
Wed, 29 Feb 2012 22:10:37 +0000 (00:10 +0200)
committerRan Benita <ran234@gmail.com>
Sat, 3 Mar 2012 22:04:04 +0000 (00:04 +0200)
Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/keycodes.c

index bd8b837..91008fc 100644 (file)
@@ -931,6 +931,7 @@ CompileKeycodes(XkbFile *file, struct xkb_desc * xkb, unsigned merge)
         }
         if (info.aliases)
             ApplyAliases(xkb, False, &info.aliases);
+        ClearKeyNamesInfo(&info);
         return True;
     }
     ClearKeyNamesInfo(&info);