Change how open polygons are saved. As std::vector never clears memory and the old implementation could mean a lot of memory was never freed.