>>966
for (int i = 0; i < (int)vec.size(); i++) {
 delete vec[i];
}
vec.clear();