From 287d70764c83f6054eb2a0ede942eda01c20fcdf Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 14 Dec 2013 11:57:53 +0200 Subject: [PATCH] Revert 2 last commits in src/alloc.c. --- src/ChangeLog | 3 --- src/alloc.c | 7 +------ 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index a9672768b48..df145600556 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,8 +1,5 @@ 2013-12-14 Eli Zaretskii - * alloc.c (cleanup_vector): Don't call the font driver's 'close' - method if the 'driver' pointer is NULL. - * fileio.c (Fcopy_file) [WINDOWSNT]: Move most of the Windows-specific code to w32.c. Change error message text to match that of Posix platforms. diff --git a/src/alloc.c b/src/alloc.c index 69681111275..aeda42637cd 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -2877,12 +2877,7 @@ cleanup_vector (struct Lisp_Vector *vector) if (PSEUDOVECTOR_TYPEP (&vector->header, PVEC_FONT) && ((vector->header.size & PSEUDOVECTOR_SIZE_MASK) == FONT_OBJECT_MAX)) - { - struct font *fnt = (struct font *) vector; - - if (fnt->driver) - fnt->driver->close (fnt); - } + ((struct font *) vector)->driver->close ((struct font *) vector); } /* Reclaim space used by unmarked vectors. */ -- 2.39.2