With a refresh tag in a .geo file, one user is getting
the above listed warning. Looking at the code a bit we
appear to be XAllocColor() in several places but not
ever calling XFreeColors(). A bit of investigation
should reveal whether we should free them and when/how.
An interesting related link:
I suspect what I'm going to want to do is keep track of
we allocate and free the colors right after we either
draw the pixel
or after we draw each file. I'm just hoping it won't
be too slow
once we add that.
Here's XV's code for color allocation and free'ing,
which may be useful to us:
Log in to post a comment.