]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fx_create_frame): Add GC protection for local var `f'.
authorPaul Reilly <pmr@pajato.com>
Fri, 1 Jul 1994 07:17:43 +0000 (07:17 +0000)
committerPaul Reilly <pmr@pajato.com>
Fri, 1 Jul 1994 07:17:43 +0000 (07:17 +0000)
src/xfns.c

index 12b369b8c75329f577eb238d1e41b61989facb12..3e04cf4cc7eded6f37be98f5bf168fa5543106f6 100644 (file)
@@ -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