MPFR custodian shutdown procedure tries to clear the constants cache

even when MPFR isn't loaded; this should close PR 13423
(cherry picked from commit 441ad6eff4)
This commit is contained in:
Neil Toronto 2013-01-09 11:20:27 -07:00 committed by Ryan Culpepper
parent 17246096e8
commit bf0c697cdb

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