comparison src/frame.c @ 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 c78654909acf
children 5952e691b975
comparison
equal deleted inserted replaced
8665:f06ea671bacb 8666:844edbc22875
874 f->root_window = Qnil; 874 f->root_window = Qnil;
875 875
876 Vframe_list = Fdelq (frame, Vframe_list); 876 Vframe_list = Fdelq (frame, Vframe_list);
877 FRAME_SET_VISIBLE (f, 0); 877 FRAME_SET_VISIBLE (f, 0);
878 878
879 if (FRAME_CURRENT_GLYPHS (f))
880 free_frame_glyphs (f, FRAME_CURRENT_GLYPHS (f));
881 if (FRAME_DESIRED_GLYPHS (f))
882 free_frame_glyphs (f, FRAME_DESIRED_GLYPHS (f));
883 if (FRAME_TEMP_GLYPHS (f))
884 free_frame_glyphs (f, FRAME_TEMP_GLYPHS (f));
885 if (FRAME_INSERT_COST (f))
886 free (FRAME_INSERT_COST (f));
887 if (FRAME_DELETEN_COST (f))
888 FRAME_DELETEN_COST (f);
889 if (FRAME_INSERTN_COST (f))
890 FRAME_INSERTN_COST (f);
891 if (FRAME_DELETE_COST (f))
892 FRAME_DELETE_COST (f);
893
879 /* Since some events are handled at the interrupt level, we may get 894 /* Since some events are handled at the interrupt level, we may get
880 an event for f at any time; if we zero out the frame's display 895 an event for f at any time; if we zero out the frame's display
881 now, then we may trip up the event-handling code. Instead, we'll 896 now, then we may trip up the event-handling code. Instead, we'll
882 promise that the display of the frame must be valid until we have 897 promise that the display of the frame must be valid until we have
883 called the window-system-dependent frame destruction routine. */ 898 called the window-system-dependent frame destruction routine. */