From 5f85021b5e8878c1b3de367bc189ecd4879e34a9 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 19 Feb 2006 16:25:13 +0000 Subject: [PATCH] *** empty log message *** --- Changes | 2 ++ src/rxvttoolkit.C | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Changes b/Changes index f0f40718..a6f51805 100644 --- 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 index c503463d..b26b4e6c 100644 --- 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 -- 2.34.1