diff --git a/core/destructors/destructors.factor b/core/destructors/destructors.factor index 7b10a75212..afe40d861c 100644 --- a/core/destructors/destructors.factor +++ b/core/destructors/destructors.factor @@ -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