Delete dereferenced pointer BEFORE removing iterator form vector