emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/android c09dca3fb03 5/9: Fix sfntfont.c build without mmap


From: Po Lu
Subject: feature/android c09dca3fb03 5/9: Fix sfntfont.c build without mmap
Date: Sun, 19 Feb 2023 09:14:47 -0500 (EST)

branch: feature/android
commit c09dca3fb0369a92a7cfb2a5ec3102a6315b8cc2
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix sfntfont.c build without mmap
    
    * src/sfntfont.c (sfntfont_close): Don't unlink font if mmap is
    not available.
---
 src/sfntfont.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/sfntfont.c b/src/sfntfont.c
index bb816fabd3e..b9141b05aad 100644
--- a/src/sfntfont.c
+++ b/src/sfntfont.c
@@ -2565,6 +2565,8 @@ sfntfont_close (struct font *font)
   xfree (info->cvt);
   xfree (info->interpreter);
 
+#ifdef HAVE_MMAP
+
   /* Unlink INFO.  */
 
   next = &open_fonts;
@@ -2575,6 +2577,8 @@ sfntfont_close (struct font *font)
     *next = info->next;
   info->next = NULL;
 
+#endif /* HAVE_MMAP */
+
   sfntfont_free_outline_cache (&info->outline_cache);
   sfntfont_free_raster_cache (&info->raster_cache);
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]