nodeinputarray: use deletelater rather than delete
Slightly safer code.
This commit is contained in:
@@ -59,8 +59,7 @@ void NodeInputArray::SetSize(int size)
|
|||||||
if (size < old_size) {
|
if (size < old_size) {
|
||||||
// If the new size is less, delete all extraneous parameters
|
// If the new size is less, delete all extraneous parameters
|
||||||
for (int i=size;i<old_size;i++) {
|
for (int i=size;i<old_size;i++) {
|
||||||
NodeInput* sub_param = sub_params_.at(i);
|
sub_params_.at(i)->deleteLater();
|
||||||
delete sub_param;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user