repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 7b59cec4f74f148b192dd71d2d73ca682a330c38: path_to: revision_to:
commit 7b59cec4f74f148b192dd71d2d73ca682a330c38 Author: Marc LehmannDate: Sun Feb 19 16:25:13 2006 +0000 *** empty log message *** diff --git a/Changes b/Changes
--- a/Changes
+++ b/Changes
@@ -33,6 +33,8 @@ DUMB: support tex fonts
so also check for matching fg colours. This fixes the problem where
selecting newly scrolled-in lines would exhibit wrong colours.
- fix a race resulting in a crash on exiting.
+ - fix a with --disable-xft that caused xfreecolors to be called on
+ colors never allocated, resulting in program aborts.
- fix a bug in xcopyarea pass and _disable_ it, as it seems not to be
working in either rxvt-unicode nor in the original rxvt.
diff --git a/src/rxvttoolkit.C b/src/rxvttoolkit.C
--- a/src/rxvttoolkit.C
+++ b/src/rxvttoolkit.C
@@ -835,6 +835,9 @@ rxvt_color::get (XColor &color)
void
rxvt_color::free (rxvt_screen *screen)
{
+ if (screen->visual->c_class == TrueColor)
+ return; // nothing to do
+
#if XFT
XftColorFree (screen->dpy, screen->visual, screen->cmap, &c);
#else
-----END OF PAGE-----