diff --git a/src/nsfns.m b/src/nsfns.m index 89b9f7c4b62..9c805ac20d1 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -1009,7 +1009,7 @@ Turn the input menu (an NSMenu) into a lisp list for tracking on lisp side x_free_frame_resources (f); free_glyphs (f); -#ifdef GLYPH_DEBUG +#if defined GLYPH_DEBUG && defined ENABLE_CHECKING /* Check that reference counts are indeed correct. */ eassert (dpyinfo->terminal->image_cache->refcount == image_cache_refcount); #endif