Deletes GCS::Constraint directly instead of calling GCS::free().

This commit is contained in:
André Caldas
2023-04-05 03:59:11 -03:00
committed by wwmayer
parent 8ea5d9bac1
commit 9d54668d1e

View File

@@ -651,9 +651,7 @@ void System::removeConstraint(Constraint *constr)
}
c2p.erase(constr);
std::vector<Constraint *> constrvec;
constrvec.push_back(constr);
free(constrvec);
delete(constr);
}
// basic constraints