mdally / Voronoi

C++ implementation of Fortune's Algorithm for computing bounded Voronoi diagrams
MIT License
25 stars 14 forks source link

memory leak in diagram #13

Open cbk0313 opened 5 months ago

cbk0313 commented 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 } }