> On 18 Dec 2017, at 19:01, 'Stephan Effelsberg' wrote:
>
> I'm on Win7 and observe the memory consumption as well (about 50 MB per second). So far, I rooted it down to Fl_GDI_Graphics_Driver::draw_unscaled and within there the call to build_id. If I remove this call there is no extra memory consumption (and of course no image). The demo creates a new image 60 times per second, so build_id is called 60 times per second as well and it seems that it doesn't forget deleted images. The image destructors are called properly, I don't know how this is communicated to any kind of cache if it needs to be.
OK, interesting observations... Though I do not know what is going.
I wonder if the use of:
Fl_Offscreen offs = surface->get_offscreen_before_delete();
is causing us to leak offscreen buffers here? We delete the “surface” after this, but I don’t see where we delete the offscreen “offs” that we keep...
Or (more likely) I’m missing the point!