diff options
| author | Paul Reilly | 1994-07-01 07:17:43 +0000 |
|---|---|---|
| committer | Paul Reilly | 1994-07-01 07:17:43 +0000 |
| commit | f8ea84991a6f781e96f7a3fa6cfdbfc562ca2bcd (patch) | |
| tree | 1d6bb8cf8487efe31cdc955784258049c59896fd | |
| parent | 69c38b460f3815a40a16d49d40458f5685b43b4d (diff) | |
| download | emacs-f8ea84991a6f781e96f7a3fa6cfdbfc562ca2bcd.tar.gz emacs-f8ea84991a6f781e96f7a3fa6cfdbfc562ca2bcd.zip | |
(Fx_create_frame): Add GC protection for local var `f'.
| -rw-r--r-- | src/xfns.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c index 12b369b8c75..3e04cf4cc7e 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -2264,6 +2264,7 @@ be shared by the new frame.") | |||
| 2264 | long window_prompting = 0; | 2264 | long window_prompting = 0; |
| 2265 | int width, height; | 2265 | int width, height; |
| 2266 | int count = specpdl_ptr - specpdl; | 2266 | int count = specpdl_ptr - specpdl; |
| 2267 | struct gcpro gcpro1; | ||
| 2267 | 2268 | ||
| 2268 | check_x (); | 2269 | check_x (); |
| 2269 | 2270 | ||
| @@ -2305,6 +2306,8 @@ be shared by the new frame.") | |||
| 2305 | } | 2306 | } |
| 2306 | 2307 | ||
| 2307 | XSET (frame, Lisp_Frame, f); | 2308 | XSET (frame, Lisp_Frame, f); |
| 2309 | GCPRO1 (frame); | ||
| 2310 | |||
| 2308 | f->output_method = output_x_window; | 2311 | f->output_method = output_x_window; |
| 2309 | f->display.x = (struct x_display *) xmalloc (sizeof (struct x_display)); | 2312 | f->display.x = (struct x_display *) xmalloc (sizeof (struct x_display)); |
| 2310 | bzero (f->display.x, sizeof (struct x_display)); | 2313 | bzero (f->display.x, sizeof (struct x_display)); |
| @@ -2436,6 +2439,8 @@ be shared by the new frame.") | |||
| 2436 | tem = x_get_arg (parms, Qunsplittable, 0, 0, boolean); | 2439 | tem = x_get_arg (parms, Qunsplittable, 0, 0, boolean); |
| 2437 | f->no_split = minibuffer_only || EQ (tem, Qt); | 2440 | f->no_split = minibuffer_only || EQ (tem, Qt); |
| 2438 | 2441 | ||
| 2442 | UNGCPRO; | ||
| 2443 | |||
| 2439 | /* It is now ok to make the frame official | 2444 | /* It is now ok to make the frame official |
| 2440 | even if we get an error below. | 2445 | even if we get an error below. |
| 2441 | And the frame needs to be on Vframe_list | 2446 | And the frame needs to be on Vframe_list |