2013-12-14 Eli Zaretskii <eliz@gnu.org>
- * 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.
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. */