mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-23 21:37:34 +00:00
* Fix `memory-report' for '--without-x' builds
* lisp/emacs-lisp/memory-report.el (memory-report--image-cache): Don't call `image-cache-size' if unbound.
This commit is contained in:
parent
2d790c6c57
commit
831659b3b8
1 changed files with 3 additions and 1 deletions
|
|
@ -294,7 +294,9 @@ by counted more than once."
|
|||
(overlay-lists)))))
|
||||
|
||||
(defun memory-report--image-cache ()
|
||||
(list (cons "Total Image Cache Size" (image-cache-size))))
|
||||
(list (cons "Total Image Cache Size" (if (fboundp 'image-cache-size)
|
||||
(image-cache-size)
|
||||
0))))
|
||||
|
||||
(provide 'memory-report)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue