Open cbk0313 opened 5 months ago
This can be easily resolved in a destructor.
Diagram::~Diagram() { for (Cell* c : cells) { freeVecMemory(c->halfEdges); cellPool.destroy(c); // Fix memory leak } }
This can be easily resolved in a destructor.
Diagram::~Diagram() { for (Cell* c : cells) { freeVecMemory(c->halfEdges); cellPool.destroy(c); // Fix memory leak } }