It is never safe to destroy our default allocator.

This commit is contained in:
JoelKatz
2013-03-26 19:44:34 -07:00
parent 7c4f2f1ca5
commit 3fdfa2cb44

View File

@@ -100,8 +100,7 @@ public:
static ValueAllocator *&valueAllocator()
{
static DefaultValueAllocator defaultAllocator;
static ValueAllocator *valueAllocator = &defaultAllocator;
static ValueAllocator *valueAllocator = new DefaultValueAllocator;
return valueAllocator;
}