From: Kim F. Storm Date: Thu, 3 Feb 2005 14:08:47 +0000 (+0000) Subject: (x_free_gc) [!GLYPH_DEBUG]: Fix xassert. X-Git-Tag: ttn-vms-21-2-B4~2432 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a6d8ba25aec5b12c60286c55b109149d69d82e9a;p=emacs.git (x_free_gc) [!GLYPH_DEBUG]: Fix xassert. --- diff --git a/src/xfaces.c b/src/xfaces.c index 7aa66735db6..e1492e6b8bf 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -738,7 +738,7 @@ x_free_gc (f, gc) GC gc; { BLOCK_INPUT; - xassert (--ngcs >= 0); + IF_DEBUG (xassert (--ngcs >= 0)); XFreeGC (FRAME_X_DISPLAY (f), gc); UNBLOCK_INPUT; } @@ -771,7 +771,7 @@ x_free_gc (f, gc) GC gc; { BLOCK_INPUT; - xassert (--ngcs >= 0); + IF_DEBUG (xassert (--ngcs >= 0)); xfree (gc); UNBLOCK_INPUT; }