On Tuesday, 3 July 2018 at 10:56:26 UTC, Flaze07 wrote:


hmm, I assume you know about DSFML, so... i.e

void main( string args[] ) {
auto win = new RenderWindow( VideoMode( 400, 400 ), "resource leak ?" );
    win.close();
}
//in this context, is there any memory leak ? because I saw from the source that the render window is freed during the destructor calls

Even if the destructor doesn't run, there's no memory leak. Resources allocated for the process will be released on exit.

Reply via email to