changeset 100617:a714dea3017d

Add comment to last change by jhd.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 20 Dec 2008 20:51:23 +0000
parents d97232b983fb
children 4d15246ec7b5
files src/frame.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/frame.c	Sat Dec 20 18:34:41 2008 +0000
+++ b/src/frame.c	Sat Dec 20 20:51:23 2008 +0000
@@ -1480,6 +1480,10 @@
   Vframe_list = Fdelq (frame, Vframe_list);
   FRAME_SET_VISIBLE (f, 0);
 
+  /* Allow the vector of menu bar contents to be freed in the next
+     garbage collection.  The frame object itself may not be garbage
+     collected until much later, because recent_keys and other data
+     structures can still refer to it.  */
   f->menu_bar_vector = Qnil;
 
   free_font_driver_list (f);