changeset 8666:844edbc22875

(Fdelete_frame): Free the frame's glyphs arrays. Free the line insert/delete cost vectors.
author Richard M. Stallman <rms@gnu.org>
date Tue, 30 Aug 1994 07:17:49 +0000
parents f06ea671bacb
children abd7ff9a94da
files src/frame.c
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/frame.c	Tue Aug 30 07:15:00 1994 +0000
+++ b/src/frame.c	Tue Aug 30 07:17:49 1994 +0000
@@ -876,6 +876,21 @@
   Vframe_list = Fdelq (frame, Vframe_list);
   FRAME_SET_VISIBLE (f, 0);
 
+  if (FRAME_CURRENT_GLYPHS (f))
+    free_frame_glyphs (f, FRAME_CURRENT_GLYPHS (f));
+  if (FRAME_DESIRED_GLYPHS (f))
+    free_frame_glyphs (f, FRAME_DESIRED_GLYPHS (f));
+  if (FRAME_TEMP_GLYPHS (f))
+    free_frame_glyphs (f, FRAME_TEMP_GLYPHS (f));
+  if (FRAME_INSERT_COST (f))
+    free (FRAME_INSERT_COST (f));
+  if (FRAME_DELETEN_COST (f))
+    FRAME_DELETEN_COST (f);
+  if (FRAME_INSERTN_COST (f))
+    FRAME_INSERTN_COST (f);
+  if (FRAME_DELETE_COST (f))
+    FRAME_DELETE_COST (f);
+
   /* Since some events are handled at the interrupt level, we may get
      an event for f at any time; if we zero out the frame's display
      now, then we may trip up the event-handling code.  Instead, we'll