Roman Kantor wrote:
> I was just looking into Fl_Help_View code and have found that format()
> (and format_table()) methods use get_image() to work with it which cause
> increase of reference count for shared images and does not release it.
> However format is called with every resize, which cause to increase the
> counting like there is no tomorrow. That means the reference count is
> wrong and images are never freed from memory when you are done with
> particular page/help view and free_data() is called.
> 
> Before filling STR, can somebody familiar with Fl_Help_View can confirm
> that?

Which FLTK version? This should be okay in 1.1 and 1.3, although the
chosen implementation was one with ABI compatibility (for 1.1) in mind. 
Please see the "Implementation note" above Fl_Help_View::get_image() in 
FLTK 1.1 and 1.3 (flag: initial_load). See also STR #2163 and #2004.

I tested this thoroughly, but if you have evidence that something is 
still wrong with it, could you provide a test case?

If you mean FLTK 2, however, then I don't know...

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

Reply via email to