OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b1bc18
)
Changed to do additional cleanup in hook_quit: nuke the terminals and set to nil...
author
Eric Branlund
<ebranlund@fastmail.com>
Wed, 26 Feb 2020 08:51:54 +0000
(
00:51
-0800)
committer
Eric Branlund
<ebranlund@fastmail.com>
Wed, 26 Feb 2020 08:51:54 +0000
(
00:51
-0800)
src/main-cocoa.m
patch
|
blob
|
history
diff --git
a/src/main-cocoa.m
b/src/main-cocoa.m
index
da66f78
..
0200372
100644
(file)
--- a/
src/main-cocoa.m
+++ b/
src/main-cocoa.m
@@
-3899,6
+3899,13
@@
static void hook_plog(const char * str)
*/
static void hook_quit(const char * str)
{
+ for (int i = ANGBAND_TERM_MAX - 1; i >= 0; --i) {
+ if (angband_term[i]) {
+ term_nuke(angband_term[i]);
+ }
+ }
+ [AngbandSoundCatalog clearSharedSounds];
+ [AngbandContext setDefaultFont:nil];
plog(str);
exit(0);
}