When calling Clear on UniquePtrList, also clear the vector.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
b3ab6dab59
commit
6ef9a6d67b
|
@ -38,6 +38,7 @@ namespace ArbUt {
|
|||
for (auto& i : _vector) {
|
||||
delete i;
|
||||
}
|
||||
_vector.clear();
|
||||
}
|
||||
|
||||
/// @brief Borrow a pointer at a certain index.
|
||||
|
|
|
@ -43,6 +43,7 @@ namespace ArbUt {
|
|||
for (auto& i : _vector) {
|
||||
delete i;
|
||||
}
|
||||
_vector.clear();
|
||||
}
|
||||
|
||||
/// @brief Borrow a pointer at a certain index.
|
||||
|
|
Loading…
Reference in New Issue