From 513c58069edda2091e4b1905554573151921e1ab Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 11 Jan 2001 12:49:00 +0000 Subject: [PATCH] (x_free_colors, x_free_dpy_colors): Do the unregister_colors before calling XFreeColors. --- src/xfaces.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xfaces.c b/src/xfaces.c index 65f912ef24d..e890dc790fd 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -701,11 +701,11 @@ x_free_colors (f, pixels, npixels) necessary and some servers don't allow it. So don't do it. */ if (class != StaticColor && class != StaticGray && class != TrueColor) { - XFreeColors (FRAME_X_DISPLAY (f), FRAME_X_COLORMAP (f), - pixels, npixels, 0); #ifdef DEBUG_X_COLORS unregister_colors (pixels, npixels); #endif + XFreeColors (FRAME_X_DISPLAY (f), FRAME_X_COLORMAP (f), + pixels, npixels, 0); } } @@ -729,10 +729,10 @@ x_free_dpy_colors (dpy, screen, cmap, pixels, npixels) necessary and some servers don't allow it. So don't do it. */ if (class != StaticColor && class != StaticGray && class != TrueColor) { - XFreeColors (dpy, cmap, pixels, npixels, 0); #ifdef DEBUG_X_COLORS unregister_colors (pixels, npixels); #endif + XFreeColors (dpy, cmap, pixels, npixels, 0); } } -- 2.39.5