[Issue 18995] std.array.array doesn't free elements

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 15 18:10:59 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18995

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com
           Assignee|nobody at puremagic.com        |schveiguy at yahoo.com

--- Comment #1 from Steven Schveighoffer <schveiguy at yahoo.com> ---
The issue is with array using uninitializedArray to allocate. This function
does not (and really cannot) initialize the proper GC bits to call the
destructors properly.

std.array.array should use normal array allocation functions when the type
being allocated has a destructor.

--


More information about the Digitalmars-d-bugs mailing list