aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index ac685f6867f..341e3e3dcd2 100644
--- a/src/window.c
+++ b/src/window.c
@@ -6124,6 +6124,7 @@ the return value is nil. Otherwise the value is t. */)
6124 Lisp_Object frame; 6124 Lisp_Object frame;
6125 struct frame *f; 6125 struct frame *f;
6126 ptrdiff_t old_point = -1; 6126 ptrdiff_t old_point = -1;
6127 USE_SAFE_ALLOCA;
6127 6128
6128 CHECK_WINDOW_CONFIGURATION (configuration); 6129 CHECK_WINDOW_CONFIGURATION (configuration);
6129 6130
@@ -6231,8 +6232,8 @@ the return value is nil. Otherwise the value is t. */)
6231 really like to do is to free only those matrices not reused 6232 really like to do is to free only those matrices not reused
6232 below. */ 6233 below. */
6233 root_window = XWINDOW (FRAME_ROOT_WINDOW (f)); 6234 root_window = XWINDOW (FRAME_ROOT_WINDOW (f));
6234 leaf_windows = alloca (count_windows (root_window) 6235 int nwindows = count_windows (root_window);
6235 * sizeof *leaf_windows); 6236 SAFE_NALLOCA (leaf_windows, 1, nwindows);
6236 n_leaf_windows = get_leaf_windows (root_window, leaf_windows, 0); 6237 n_leaf_windows = get_leaf_windows (root_window, leaf_windows, 0);
6237 6238
6238 /* Kludge Alert! 6239 /* Kludge Alert!
@@ -6456,6 +6457,7 @@ the return value is nil. Otherwise the value is t. */)
6456 Vminibuf_scroll_window = data->minibuf_scroll_window; 6457 Vminibuf_scroll_window = data->minibuf_scroll_window;
6457 minibuf_selected_window = data->minibuf_selected_window; 6458 minibuf_selected_window = data->minibuf_selected_window;
6458 6459
6460 SAFE_FREE ();
6459 return (FRAME_LIVE_P (f) ? Qt : Qnil); 6461 return (FRAME_LIVE_P (f) ? Qt : Qnil);
6460} 6462}
6461 6463