* 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:
Andrea Corallo 2020-12-13 01:11:56 +01:00
parent 2d790c6c57
commit 831659b3b8

View file

@ -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)