Don't leak DoodadInfo's from GeometryInfo Signed-off-by: Ran Benita <ran234@gmail.com>
diff --git a/src/xkbcomp/geometry.c b/src/xkbcomp/geometry.c
index 8c31b6f..ac72213 100644
--- a/src/xkbcomp/geometry.c
+++ b/src/xkbcomp/geometry.c
@@ -663,6 +663,10 @@ ClearGeometryInfo(GeometryInfo * info)
FreeShapes(info->shapes, info);
if (info->sections)
FreeSections(info->sections, info);
+ if (info->doodads)
+ FreeDoodads(info->doodads, NULL, info);
+ if (info->dfltDoodads)
+ FreeDoodads(info->dfltDoodads, NULL, info);
info->widthMM = 0;
info->heightMM = 0;
info->dfltCornerRadius = 0;