# HG changeset patch # User Paul Reilly # Date 773047063 0 # Node ID b0d56b9856c4dc34e464a15cc534019767dd1650 # Parent 4a3738525ffdaf5b942ad111e86115251005d37a (Fx_create_frame): Add GC protection for local var `f'. diff -r 4a3738525ffd -r b0d56b9856c4 src/xfns.c --- a/src/xfns.c Fri Jul 01 06:19:16 1994 +0000 +++ b/src/xfns.c Fri Jul 01 07:17:43 1994 +0000 @@ -2264,6 +2264,7 @@ long window_prompting = 0; int width, height; int count = specpdl_ptr - specpdl; + struct gcpro gcpro1; check_x (); @@ -2305,6 +2306,8 @@ } 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 @@ 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