Commit f671ce07ff58c7685a6bec9ba0faf3227907681d

Ran Benita 2012-09-22T02:36:05

symbols: fix memleak from default KeyInfo If the default KeyInfo gets any keysyms or actions, it needs to be free'd. Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/xkbcomp/symbols.c b/src/xkbcomp/symbols.c
index 91feea0..3ec3fc1 100644
--- a/src/xkbcomp/symbols.c
+++ b/src/xkbcomp/symbols.c
@@ -194,6 +194,7 @@ ClearSymbolsInfo(SymbolsInfo * info)
         ClearKeyInfo(keyi);
     darray_free(info->keys);
     darray_free(info->modMaps);
+    ClearKeyInfo(&info->dflt);
 }
 
 static bool