[poincare] Register Static Allocation Failure if required

This commit is contained in:
Émilie Feral
2018-08-09 16:43:36 +02:00
parent 8bfbad3f97
commit 5fd415eb9e
21 changed files with 26 additions and 7 deletions

View File

@@ -355,6 +355,7 @@ NaturalIntegerPointer::NaturalIntegerPointer(native_uint_t * buffer, size_t size
IntegerNode * IntegerNode::FailedAllocationStaticNode() {
static AllocationFailureIntegerNode failure;
TreePool::sharedPool()->registerStaticNodeIfRequired(&failure);
return &failure;
}