how to create an array of scoped objects ?
Mike Parker
aldacron at gmail.com
Tue Jul 3 14:32:01 UTC 2018
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.
More information about the Digitalmars-d-learn
mailing list