Matched a vector new with vector delete.

Thanks to Daniel and valgrind.