]> git.eshelyaron.com Git - emacs.git/commit
Prevent a segfault when deleting a fullscreen frame on NextStep.
authorKai Ma <justksqsf@gmail.com>
Sat, 3 Dec 2022 10:17:26 +0000 (18:17 +0800)
committerEli Zaretskii <eliz@gnu.org>
Sun, 4 Dec 2022 12:50:04 +0000 (14:50 +0200)
commit029988d4a518b9b255a15e2aae3a2ad6565db47d
tree4b8987b8a55a3e9a1c231d9bad9a78d918e4fc02
parent3768b1007775d58c3cadb1b3198209e71afefc52
Prevent a segfault when deleting a fullscreen frame on NextStep.

* nsterm.m ([EmacsView resetCursorRects:]): Be defensive when
accessing FRAME_OUTPUT_DATA.  [resetCursorRects:] can be called
from the event loop after the frame is deleted.  When this
happens, emacsframe is NULL.  This means there is an underlying
leak of the EmacsView object!  (Bug#59794)
Do not merge to master.

Copyright-paperwork-exempt: yes
src/nsterm.m