clean up global destructors as a shutdown hook in case exit is called

Doug Coleman 2009-10-21 12:32:51 -05:00
parent 42cc38010a
commit 515758c0c1
1 changed files with 7 additions and 0 deletions

View File

@ -91,3 +91,10 @@ PRIVATE>
[ do-error-destructors ]
cleanup
] with-scope ; inline
[
[
always-destructors get-global dispose-each
error-destructors get-global dispose-each
] with-destructors
] "destructors.global" add-shutdown-hook