Skip to content

dispose() will not free the proper size of an object derived from a template #51

@rv32ima

Description

@rv32ima

Seems as if the issue is here:

auto support = (cast(void*) ob)[0 .. typeid(ob).initializer.length];

Known issue (filed in 2014? wtf?): https://issues.dlang.org/show_bug.cgi?id=13833

You can find a proof of concept of this here (comment only the for block out),
https://gist.github.com/hatf0/9de09fd8e78e21e42f89199312852858

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions