Hmm, you have turned off XFT in your build, then? You get much nicer
looking text display if you leave XFT enabled in 1.3...

> find_best_font() keeps a static pointer to the list of font 
> names provided by libx11. find_best_font() frees and then 
> re-queries that list from libx11 every time find_best_font() 
> is run. At program termination, that list cannot be freed.

Why is that a Bad Thing?
The system will auto-release allocated memory on application exit (and
probably more efficiently than we could do it manually), and IIRC
XListFonts() doesn't hold onto any other resources, so there's nothing
to leak here.

What am I missing? Is there something specific about this I'm not
seeing?
As it stands, I think the existing code is good. Certainly better than a
fixed size array, I'd hazard..

Opinions?

Also, again, with a unified diff, please?



SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to