# HG changeset patch # User Chong Yidong # Date 1229806283 0 # Node ID a714dea3017d2cb10e4acede4a37335344572c3f # Parent d97232b983fb2a29a6fede922f7d8aca5264b1bf Add comment to last change by jhd. diff -r d97232b983fb -r a714dea3017d src/frame.c --- 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);