diff --git a/source/string_pool.cpp b/source/string_pool.cpp index 59603e5e..c99d6786 100644 --- a/source/string_pool.cpp +++ b/source/string_pool.cpp @@ -13,9 +13,7 @@ #include #include -#include #include -#include #include #include @@ -43,7 +41,11 @@ class string_pool_t : boost::noncopyable { explicit string_pool_t(std::size_t pool_size = default_pool_size_k) : pool_size_m(pool_size), next_m(NULL), end_m(NULL) {} - ~string_pool_t() { adobe::for_each(pool_m, adobe::delete_ptr()); } + ~string_pool_t() { + for (char* pool : pool_m) { + ::operator delete(pool); + } + } const char* add(const char* ident) { std::size_t n = std::strlen(ident);