[918] in Zephyr_Bugs
Re: zwgc: Error in XAllocColor
daemon@ATHENA.MIT.EDU (Greg Hudson)
Fri Mar 27 16:23:41 1998
Date: Fri, 27 Mar 1998 16:23:39 -0500
From: Greg Hudson <ghudson@MIT.EDU>
To: Jeff Evarts <jde@va.pubnix.com>
Cc: bug-zephyr@MIT.EDU
In-Reply-To: "[917] in Zephyr_Bugs"
> I gave a TRIVIAL look at the code, and noticed that XFreeColors is
> never called to release the colors allocated by XAllocColor... is
> this correct behavior?
Not really. It's a little hard to fix because, at least as I remember
it, if you allocate the same color twice you're still only supposed to
free it once. So we'd have to add a table to keep track of colors.
At any rate, failure to allocate a color is often attributable to a
very colorful background or to a netscape process.