← Back to index
|
Original Bugzilla link
Bug 13195 – Delete calls destructor but doesn't free
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-23T21:39:00Z
Last change time
2014-08-01T16:09:08Z
Keywords
wrong-code
Assigned to
blah38621
Creator
blah38621
Comments
Comment #0
by blah38621 — 2014-07-23T21:39:08Z
Currently if you define a struct with a destructor, but don't overload the delete operator, DMD will only emit the code to finalize the structure, it won't emit the code to free it. This requires a druntime and a DMD change, the druntime PR is here:
https://github.com/D-Programming-Language/druntime/pull/907
And the DMD PR:
https://github.com/D-Programming-Language/dmd/pull/3727
Comment #1
by blah38621 — 2014-07-23T21:44:01Z
Ah, woops, forgot the link to the PR which has a bit more info on this:
https://github.com/D-Programming-Language/druntime/pull/864
Comment #2
by github-bugzilla — 2014-08-01T16:09:07Z
Commit pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/b543bee59048f73d0c226d3708858109ebbcaa9a
Merge pull request #3727 from Orvid/structDestructors Fix Issue 13195 - Delete calls destructor but doesn't free