diff --git a/src/global-handles.cc b/src/global-handles.cc index 573669a457..f089b85e1a 100644 --- a/src/global-handles.cc +++ b/src/global-handles.cc @@ -226,6 +226,12 @@ class GlobalHandles::Pool BASE_EMBEDDED { limit_ = current_->nodes + kNodesPerChunk; } + ~Pool() { + if (current_ != NULL) { + Release(); + } + } + Node* Allocate() { if (next_ < limit_) { return next_++;