changeset 91111:8781d295c455

(make_frame): Initialize f->font_data_list to NULL. (Fdelete_frame): Call font_update_drivers.
author Kenichi Handa <handa@m17n.org>
date Mon, 19 Nov 2007 05:09:08 +0000
parents 82a42637237c
children 8042dbbb0419
files src/frame.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/frame.c	Mon Nov 19 05:08:04 2007 +0000
+++ b/src/frame.c	Mon Nov 19 05:09:08 2007 +0000
@@ -335,6 +335,7 @@
   f->win_gravity = 0;
 #ifdef USE_FONT_BACKEND
   f->font_driver_list = NULL;
+  f->font_data_list = NULL;
 #endif	/* USE_FONT_BACKEND */
 
   root_window = make_window ();
@@ -1484,6 +1485,9 @@
      memory. */
   free_glyphs (f);
 
+  /* Give chance to each font driver to free a frame specific data.  */
+  font_update_drivers (f, Qnil);
+
   /* Mark all the windows that used to be on FRAME as deleted, and then
      remove the reference to them.  */
   delete_all_subwindows (XWINDOW (f->root_window));