Hello,
While working on sfeMovie I noticed a memory leak related to the OpenGL contexts.
I have 2 background threads where I do graphical work through the SFML Graphics package and I kill these threads when stopping the movie playback, and relaunch them when playing again.
I noticed a memory increase by around 10MB each time I restart the movie playback (stop [kill thread] + play [relaunch thread]). I can't remember how I thought of this but... if I manually declare a sf::Context object in each of the two thread functions, the memory leak is reduced by 90%. Thus I suppose that when exiting the background thread, the associated OpenGL context isn't properly released, whereas with the manual OpenGL context handling it's ok (I still need to figure out what's the remaining 10% leaking).
Isn't something going wrong in the SFML automatic OpenGL context handling?
Ceylo
PS: going to write a minimal code ASAP.