changeset 59904:adc18da68682

(unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
author Kim F. Storm <storm@cua.dk>
date Thu, 03 Feb 2005 14:09:04 +0000
parents f2619addaa72
children d6551c039c8f
files src/xfns.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Thu Feb 03 14:08:47 2005 +0000
+++ b/src/xfns.c	Thu Feb 03 14:09:04 2005 +0000
@@ -2863,9 +2863,11 @@
 
       x_free_frame_resources (f);
 
+#if GLYPH_DEBUG
       /* Check that reference counts are indeed correct.  */
       xassert (dpyinfo->reference_count == dpyinfo_refcount);
       xassert (dpyinfo->image_cache->refcount == image_cache_refcount);
+#endif
       return Qt;
     }
 
@@ -4087,7 +4089,7 @@
 
   if (! NILP (outer_p)) w = FRAME_OUTER_WINDOW (f);
   else w = FRAME_X_WINDOW (f);
- 
+
   XChangeProperty (FRAME_X_DISPLAY (f), w,
 		   prop_atom, target_type, element_format, PropModeReplace,
 		   data, nelements);
@@ -5256,7 +5258,7 @@
           if (keysym == XK_g && (event.xkey.state & ControlMask) != 0)
             XtUnmanageChild (dialog);
         }
-  
+
       (void) x_dispatch_event (&event, FRAME_X_DISPLAY (f));
     }