[poincare] Register static nodes

This commit is contained in:
Romain Goyet
2018-08-10 15:38:32 +02:00
parent 18bea739d2
commit f8785f5e79
2 changed files with 2 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ class BlobNode : public TreeNode {
public:
static BlobNode * FailedAllocationStaticNode() {
static AllocationFailureNode<BlobNode> failureNode;
TreePool::sharedPool()->registerStaticNodeIfRequired(&failureNode);
return &failureNode;
}
virtual BlobNode * failedAllocationStaticNode() override {

View File

@@ -13,6 +13,7 @@ class PairNode : public TreeNode {
public:
static PairNode * FailedAllocationStaticNode() {
static AllocationFailureNode<PairNode> failureNode;
TreePool::sharedPool()->registerStaticNodeIfRequired(&failureNode);
return &failureNode;
}
virtual PairNode * failedAllocationStaticNode() override {