Should fix issues 17 and 18 (although I couldn't reproduce them).
This commit is contained in:
parent
aa3b13b077
commit
fc0aba516d
|
@ -35,6 +35,7 @@ import dyaml.linebreak;
|
|||
import dyaml.queue;
|
||||
import dyaml.style;
|
||||
import dyaml.tag;
|
||||
import dyaml.tagdirective;
|
||||
|
||||
|
||||
package:
|
||||
|
|
|
@ -197,7 +197,7 @@ void free(T)(T* ptr) @system nothrow
|
|||
//GC doesn't need to care about any references in this struct anymore.
|
||||
static if(hasIndirections!T){GC.removeRange(cast(void*)ptr);}
|
||||
static if(hasMember!(T, "__dtor")){clear(*ptr);}
|
||||
std.c.stdlib.free(ptr);
|
||||
core.stdc.stdlib.free(ptr);
|
||||
}
|
||||
|
||||
unittest
|
||||
|
|
Loading…
Reference in a new issue