std.container.Array/RefCounted(T) leaking memory?

%u wfunction at hotmail.com
Fri Jan 7 21:56:36 PST 2011


Hi,

This code seems to leak memory, as the memory isn't reclaimed:

//Test memory here: low
{
	auto b = Array!(bool)();
	b.length = 1024 * 1024 * 128 * 8;
	//Test memory here: high
}
//Test memory here: high

Am I missing something about how Array(T) (and RefCounted) works, or is this
really a bug?

Thank you!


More information about the Digitalmars-d-learn mailing list