Commit c24d97e45e7c1b951b1f84ca2393f0fc8a11ffc8

Ran Benita 2012-03-01T19:45:37

Don't leak DoodadInfo's from GeometryInfo Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;