]> code.delx.au - gnu-emacs/commitdiff
(unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
authorKim F. Storm <storm@cua.dk>
Thu, 3 Feb 2005 14:09:04 +0000 (14:09 +0000)
committerKim F. Storm <storm@cua.dk>
Thu, 3 Feb 2005 14:09:04 +0000 (14:09 +0000)
src/xfns.c

index 64a83cdd5f6c099fe27592908ab26a0bf4220a60..6aaba582e57d3d6c153ce74ba3d926ae6d1f512a 100644 (file)
@@ -2863,9 +2863,11 @@ unwind_create_frame (frame)
 
       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 @@ Value is VALUE.  */)
 
   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 @@ or directory must exist.  ONLY-DIR-P is ignored."  */)
           if (keysym == XK_g && (event.xkey.state & ControlMask) != 0)
             XtUnmanageChild (dialog);
         }
-  
+
       (void) x_dispatch_event (&event, FRAME_X_DISPLAY (f));
     }