Commit 513c5806 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(x_free_colors, x_free_dpy_colors): Do the

unregister_colors before calling XFreeColors.
parent 926861fb
......@@ -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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment