summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-04-01 12:14:51 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-04-01 12:16:56 +0100
commit073eb2c56f4794275eee40a825dbfe1232bb2690 (patch)
tree94e4b5ed078d9fa09bcb73c96ce7ef73575e499d
parentde50317ec4e0e8da7de84e85d1f7a6d2e184d58b (diff)
Free list on shutdown.
We freed the parent structure without freeing the list contained within, making valgrind unhappy. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/display.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/display.c b/src/display.c
index c296807..bcf9964 100644
--- a/src/display.c
+++ b/src/display.c
@@ -35,6 +35,13 @@ _XcursorFreeDisplayInfo (XcursorDisplayInfo *info)
if (info->theme_from_config)
free (info->theme_from_config);
+ while (info->fonts)
+ {
+ XcursorFontInfo *fi = info->fonts;
+ info->fonts = fi->next;
+ free (fi);
+ }
+
free (info);
}