From 0d5180c98f9598282c898b3204970376051fb27b Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Sun, 18 Dec 2016 01:21:07 +0100 Subject: [PATCH] Also fix memory corruption for GDC --- source/poodinis/container.d | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/poodinis/container.d b/source/poodinis/container.d index 50a6b43..e663f31 100644 --- a/source/poodinis/container.d +++ b/source/poodinis/container.d @@ -120,8 +120,7 @@ synchronized class DependencyContainer { private ResolveOption persistentResolveOptions; ~this() { - pragma(msg, __VERSION__); - if (!(vendor == Vendor.digitalMars && __VERSION__ == 2066)) { + if (!((vendor == Vendor.digitalMars || vendor == Vendor.gnu) && __VERSION__ == 2066)) { clearAllRegistrations(); } }