changeset 59903:f2619addaa72

(x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
author Kim F. Storm <storm@cua.dk>
date Thu, 03 Feb 2005 14:08:47 +0000
parents 4a0a167cb6c4
children adc18da68682
files src/xfaces.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Thu Feb 03 14:08:01 2005 +0000
+++ b/src/xfaces.c	Thu Feb 03 14:08:47 2005 +0000
@@ -738,7 +738,7 @@
      GC gc;
 {
   BLOCK_INPUT;
-  xassert (--ngcs >= 0);
+  IF_DEBUG (xassert (--ngcs >= 0));
   XFreeGC (FRAME_X_DISPLAY (f), gc);
   UNBLOCK_INPUT;
 }
@@ -771,7 +771,7 @@
      GC gc;
 {
   BLOCK_INPUT;
-  xassert (--ngcs >= 0);
+  IF_DEBUG (xassert (--ngcs >= 0));
   xfree (gc);
   UNBLOCK_INPUT;
 }