MPFR custodian shutdown procedure tries to clear the constants cache

even when MPFR isn't loaded; this should close PR 13423
This commit is contained in:
Neil Toronto 2013-01-09 11:20:27 -07:00
parent 6e21e34ec7
commit 441ad6eff4

View File

@ -81,9 +81,10 @@
(register-custodian-shutdown
mpfr-free-cache ; acts as a "random" object for a shutdown handle
(λ (free)
;; The direct reference here is important, since custodian holds only
;; a weak reference to shutdown handle:
(mpfr-free-cache))))
(when mpfr-lib
;; The direct reference here is important, since custodian holds only
;; a weak reference to shutdown handle:
(mpfr-free-cache)))))
;; ===================================================================================================
;; MPFR types