]> git.eshelyaron.com Git - emacs.git/commit
Simplify Objective C autorelease pool handling
authorAlan Third <alan@idiocy.org>
Mon, 9 Oct 2023 21:21:05 +0000 (22:21 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 2 Jan 2024 07:54:33 +0000 (08:54 +0100)
commit209ba86766fece3a5a7c72c01d45ad225f7afbb1
tree3c993ac9a22d3cc9977ef4f0c173c947d4cc05eb
parentc47c4d9deb5b69641e8116d6e77fb89cf49facb8
Simplify Objective C autorelease pool handling

* src/emacs.c: Remove ns_pool.
(main): Replace ns_pool stuff with call to ns_init_pool.
(Fkill_emacs): The pools are drained automatically when the
application exits, so it's probably not worth draining the pool here.
(decode_env_path): No longer required as this is handled by
`outerpool' defined in nsterm.m.
* src/nsterm.h:
* src/nsterm.m (ns_init_pool): New function.

(cherry picked from commit 66656bf5f86c7623072a08fa3f29ba9c879d3f6d)
src/emacs.c
src/nsterm.h
src/nsterm.m