changeset 100406:b8012399df73

(free_font_driver_list): Implement missing function.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 13 Dec 2008 15:39:48 +0000
parents aed8ba717c94
children e0575880d3f3
files src/font.c
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/font.c	Sat Dec 13 15:39:39 2008 +0000
+++ b/src/font.c	Sat Dec 13 15:39:48 2008 +0000
@@ -3506,6 +3506,20 @@
     num_font_drivers++;
 }
 
+void
+free_font_driver_list (f)
+     FRAME_PTR f;
+{
+  struct font_driver_list *list, *next;
+
+  for (list = f->font_driver_list; list; list = next)
+    {
+      next = list->next;
+      xfree (list);
+    }
+  f->font_driver_list = NULL;
+}
+
 
 /* Make the frame F use font backends listed in NEW_DRIVERS (list of
    symbols, e.g. xft, x).  If NEW_DRIVERS is t, make F use all