Commit f8ea8499 authored by Paul Reilly's avatar Paul Reilly

(Fx_create_frame): Add GC protection for local var `f'.

parent 69c38b46
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment