I think I found a potential memory leak in Fl_Help_View. In ~Fl_Help_View, the code tests nblocks_, nlinks_, ntargets_ when in fact it should be testing ablocks_, alinks_, atargets_
nblocks_, nlinks_, ntargets_ are always zeroed in format() and may not be properly set and therefore do not reflect actual allocation of arrays like ablocks_, alinks_, atargets_ counters do. This fix however does not solve my real problem with the memory leak. When I use Fl_Help_View and jump between help pages using embedded links, after about 30 pages it freezes due to out of memory. I only have 64 MB of memory on my system and I noticed that my memory usage increases by almost 1 MB per each page displayed. Anyone has any ideas what could be using this much memory and why it is not freed after each page switch? _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

