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

Fix crashing on Windows in ObjectPool ~ctor #16941

Merged
merged 4 commits into from
Dec 7, 2019
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/common/object_pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ struct ObjectPoolAllocatable {
template <typename T>
ObjectPool<T>::~ObjectPool() {
for (auto i : allocated_) {
#ifdef _MSC_VER
_aligned_free(i);
#else
free(i);
#endif
}
}

Expand Down