mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
It is never safe to destroy our default allocator.
This commit is contained in:
@@ -100,8 +100,7 @@ public:
|
||||
|
||||
static ValueAllocator *&valueAllocator()
|
||||
{
|
||||
static DefaultValueAllocator defaultAllocator;
|
||||
static ValueAllocator *valueAllocator = &defaultAllocator;
|
||||
static ValueAllocator *valueAllocator = new DefaultValueAllocator;
|
||||
return valueAllocator;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user