emacs-diffs
[Top][All Lists]
Advanced

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

scratch/igc ede35b798ca: Helmut says don't malloc faces


From: Gerd Moellmann
Subject: scratch/igc ede35b798ca: Helmut says don't malloc faces
Date: Sun, 28 Apr 2024 02:58:29 -0400 (EDT)

branch: scratch/igc
commit ede35b798caf32aea2c9f6f1785fe8f630cc461f
Author: Gerd Möllmann <gerd@gnu.org>
Commit: Gerd Möllmann <gerd@gnu.org>

    Helmut says don't malloc faces
---
 src/xfaces.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/xfaces.c b/src/xfaces.c
index c4265bab849..183012b8fe7 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -6086,7 +6086,11 @@ realize_non_ascii_face (struct frame *f, Lisp_Object 
font_object,
   struct face_cache *cache = FRAME_FACE_CACHE (f);
   struct face *face;
 
+#ifdef HAVE_MPS
+  face = igc_make_face ();
+#else
   face = xmalloc (sizeof *face);
+#endif
   *face = *base_face;
   face->gc = 0;
   face->overstrike



reply via email to

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