From f8ea84991a6f781e96f7a3fa6cfdbfc562ca2bcd Mon Sep 17 00:00:00 2001 From: Paul Reilly Date: Fri, 1 Jul 1994 07:17:43 +0000 Subject: [PATCH] (Fx_create_frame): Add GC protection for local var `f'. --- src/xfns.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xfns.c b/src/xfns.c index 12b369b8c7..3e04cf4cc7 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -2264,6 +2264,7 @@ be shared by the new frame.") long window_prompting = 0; int width, height; int count = specpdl_ptr - specpdl; + struct gcpro gcpro1; check_x (); @@ -2305,6 +2306,8 @@ be shared by the new frame.") } XSET (frame, Lisp_Frame, f); + GCPRO1 (frame); + f->output_method = output_x_window; f->display.x = (struct x_display *) xmalloc (sizeof (struct x_display)); bzero (f->display.x, sizeof (struct x_display)); @@ -2436,6 +2439,8 @@ be shared by the new frame.") tem = x_get_arg (parms, Qunsplittable, 0, 0, boolean); f->no_split = minibuffer_only || EQ (tem, Qt); + UNGCPRO; + /* It is now ok to make the frame official even if we get an error below. And the frame needs to be on Vframe_list -- 2.39.2