
16 Oct
2007
16 Oct
'07
6:28 p.m.
On Tue, Oct 16, 2007 at 06:19:36PM -0400, Devin Mullins wrote:
On Tue, Oct 16, 2007 at 02:39:42PM -0700, David Roundy wrote:
+ Color p _ _ _ _ <- io $ allocColor d cm (Color 0 (mn r1 r2) (mn g1 g2) (mn b1 b2) 0)
Possibly stupid question -- is there any danger in not freeing the alloc'd Color?
On a truecolor system, no. On a pseudocolor system, you can only alloc so many colors (256 is typical, but I've seen 64) before it starts failing. (Consider that Xmonad is marketed as good for low end systems) Stefan