aboutsummaryrefslogtreecommitdiffstats
path: root/src/font.h
diff options
context:
space:
mode:
authorDmitry Antipov2013-10-25 11:28:16 +0400
committerDmitry Antipov2013-10-25 11:28:16 +0400
commit86bd985ec0060b83fe272e3fcc1d35f19a966ad1 (patch)
tree763c8e570e1c42a30ce846a133217e07b6217788 /src/font.h
parent78e0b35c45892995da596c65759fdece3e67129d (diff)
downloademacs-86bd985ec0060b83fe272e3fcc1d35f19a966ad1.tar.gz
emacs-86bd985ec0060b83fe272e3fcc1d35f19a966ad1.zip
Perform font-specific cleanup when font object is swept by GC. See
http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00740.html. * alloc.c (cleanup_vector): New function. (sweep_vector): Call it for each reclaimed vector object. * font.h (struct font): Adjust comment.
Diffstat (limited to 'src/font.h')
-rw-r--r--src/font.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/font.h b/src/font.h
index 9285330ce54..2db8d35af48 100644
--- a/src/font.h
+++ b/src/font.h
@@ -545,7 +545,7 @@ struct font_driver
545 Lisp_Object (*open) (struct frame *f, Lisp_Object font_entity, 545 Lisp_Object (*open) (struct frame *f, Lisp_Object font_entity,
546 int pixel_size); 546 int pixel_size);
547 547
548 /* Close FONT. */ 548 /* Close FONT. NOTE: this can be called by GC. */
549 void (*close) (struct font *font); 549 void (*close) (struct font *font);
550 550
551 /* Optional (if FACE->extra is not used). 551 /* Optional (if FACE->extra is not used).