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 the new size is less, delete all extraneous parameters
|
||||
for (int i=size;i<old_size;i++) {
|
||||
NodeInput* sub_param = sub_params_.at(i);
|
||||
delete sub_param;
|
||||
sub_params_.at(i)->deleteLater();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user