symbols: fix memleak from default KeyInfo
authorRan Benita <ran234@gmail.com>
Fri, 21 Sep 2012 23:36:05 +0000 (02:36 +0300)
committerDaniel Stone <daniel@fooishbar.org>
Sun, 23 Sep 2012 23:08:54 +0000 (09:08 +1000)
If the default KeyInfo gets any keysyms or actions, it needs to be
free'd.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/symbols.c

index 91feea0..3ec3fc1 100644 (file)
@@ -194,6 +194,7 @@ ClearSymbolsInfo(SymbolsInfo * info)
         ClearKeyInfo(keyi);
     darray_free(info->keys);
     darray_free(info->modMaps);
+    ClearKeyInfo(&info->dflt);
 }
 
 static bool