mirror of
https://github.com/mbierlee/poodinis.git
synced 2024-11-15 04:04:01 +01:00
Prevent memory corruption in DMD 2.066.1
As a consequence registations will NOT be cleared during deconstruction of the container in that version
This commit is contained in:
parent
3d9a449766
commit
708ec67070
|
@ -24,6 +24,7 @@ import std.string;
|
|||
import std.algorithm;
|
||||
import std.concurrency;
|
||||
import std.traits;
|
||||
import std.compiler;
|
||||
|
||||
debug {
|
||||
import std.stdio;
|
||||
|
@ -119,7 +120,10 @@ synchronized class DependencyContainer {
|
|||
private ResolveOption persistentResolveOptions;
|
||||
|
||||
~this() {
|
||||
clearAllRegistrations();
|
||||
pragma(msg, __VERSION__);
|
||||
if (!(vendor == Vendor.digitalMars && __VERSION__ == 2066)) {
|
||||
clearAllRegistrations();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue