Should fix issues 17 and 18 (although I couldn't reproduce them).

This commit is contained in:
Ferdinand Majerech 2014-05-20 22:30:39 +02:00
parent aa3b13b077
commit fc0aba516d
2 changed files with 2 additions and 1 deletions

View file

@ -35,6 +35,7 @@ import dyaml.linebreak;
import dyaml.queue;
import dyaml.style;
import dyaml.tag;
import dyaml.tagdirective;
package:

View file

@ -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