From: Chong Yidong Date: Sat, 20 Dec 2008 20:51:23 +0000 (+0000) Subject: Add comment to last change by jhd. X-Git-Tag: emacs-pretest-23.0.90~932 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a90af46f358255fde5a4bc1dcb961caa98a37083;p=emacs.git Add comment to last change by jhd. --- diff --git a/src/frame.c b/src/frame.c index db8874f5280..a21bacc80da 100644 --- a/src/frame.c +++ b/src/frame.c @@ -1480,6 +1480,10 @@ But FORCE inhibits this too. */) 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);