Fix memory leak by resetting unique ptr instead of releasing

This commit is contained in:
Simon Giraudot 2021-03-31 11:52:12 +02:00
parent 590aa1b4a6
commit e0ee8aaf42
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ public:
{ {
#ifdef CGAL_LINKED_WITH_TBB #ifdef CGAL_LINKED_WITH_TBB
m_tasks->wait(); m_tasks->wait();
m_tasks.release(); m_tasks.reset();
m_adders.clear(); m_adders.clear();
#endif #endif
} }