(Fdelete_frame): Call font_update_drivers only when
authorKenichi Handa <handa@m17n.org>
Wed, 21 Nov 2007 00:26:15 +0000 (00:26 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 21 Nov 2007 00:26:15 +0000 (00:26 +0000)
USE_FONT_BACKEND is defined..

src/frame.c

index 7151335..f081de5 100644 (file)
@@ -1485,8 +1485,10 @@ The functions are run with one arg, the frame to be deleted.  */)
      memory. */
   free_glyphs (f);
 
+#ifdef USE_FONT_BACKEND
   /* Give chance to each font driver to free a frame specific data.  */
   font_update_drivers (f, Qnil);
+#endif /* USE_FONT_BACKEND */
 
   /* Mark all the windows that used to be on FRAME as deleted, and then
      remove the reference to them.  */