(Compiled with dmd v2.051)
Code like this:
import dsfml.graphics.all;
void main()
{
while(true)
auto rect = new Image(1024, 1024);
}
Errors per minute, causing an exception. I assume this is due to memory leaks.
Code like this causes access violations and / or exceptions:
import dsfml.graphics.all;
void main ()
{
auto rect = new Image (1024, 1024);
rect.dispose ();
}
What should I actually do with images and other similar classes? I would like to avoid memory leaks and .
bfops source
share