http://www.derekbradley.ca/voronoi.html

This is the modified version of Steve Fortune’s voronoi code, added memory management which removes all memory leaks and allows the voronoi computation to be executed multiple times in the same application without eventually running out of memory.