Depsgraph: Fix memory leak
I introduced the issue in rBb21a3e77027.
This commit is contained in:
parent
578e976710
commit
5461c7526a
|
@ -203,7 +203,6 @@ void clear_physics_relations(Depsgraph *graph)
|
|||
for (ListBase *list : hash->values()) {
|
||||
BKE_effector_relations_free(list);
|
||||
}
|
||||
hash->clear();
|
||||
break;
|
||||
case DEG_PHYSICS_COLLISION:
|
||||
case DEG_PHYSICS_SMOKE_COLLISION:
|
||||
|
@ -211,11 +210,11 @@ void clear_physics_relations(Depsgraph *graph)
|
|||
for (ListBase *list : hash->values()) {
|
||||
BKE_collision_relations_free(list);
|
||||
}
|
||||
hash->clear();
|
||||
break;
|
||||
case DEG_PHYSICS_RELATIONS_NUM:
|
||||
break;
|
||||
}
|
||||
delete hash;
|
||||
graph->physics_relations[i] = nullptr;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue