Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
uncomment memory pool free
Browse files Browse the repository at this point in the history
  • Loading branch information
arcadiaphy committed Feb 15, 2019
1 parent 8416c56 commit 023e1d8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/common/object_pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,9 @@ struct ObjectPoolAllocatable {

template <typename T>
ObjectPool<T>::~ObjectPool() {
// TODO(hotpxl): mind destruction order
// for (auto i : allocated_) {
// free(i);
// }
for (auto i : allocated_) {
free(i);
}
}

template <typename T>
Expand Down

0 comments on commit 023e1d8

Please sign in to comment.