1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-14 09:39:42 +00:00

Fix CHECK_ALLOCATED_AND_LIVE abort during GC

* src/editfns.c (save_restriction_restore):
Wait for the GC to free the temporary markers (Bug#30931).
This commit is contained in:
Paul Eggert 2018-03-29 23:00:23 -07:00
parent 20b858ef13
commit 670f2ffae7

View File

@ -3899,9 +3899,10 @@ save_restriction_restore (Lisp_Object data)
buf->clip_changed = 1; /* Remember that the narrowing changed. */
}
/* These aren't needed anymore, so don't wait for GC. */
free_marker (XCAR (data));
free_marker (XCDR (data));
/* This isnt needed anymore, so dont wait for GC.
Do not call free_marker on XCAR (data) or XCDR (data),
though, since record_marker_adjustments may have put
them on the buffers undo list (Bug#30931). */
free_cons (XCONS (data));
}
else